add error code defines and steering angle looping