ardupilot
ardupilot copied to clipboard
Copter: get_yaw_rate_stabilized_ef incorrectly checks g.rc_3.control_in
YAW_HOLD calls get_yaw_rate_stabilized_ef which will set the angle_error to zero if g.rc_3.control_in is zero but this is also possible during autopilot modes (like Loiter, RTL, AUTO). In this case the copter might lose yaw control and start spinning.
The pilot should be able to put his/her throttle to zero with no effect on the attitude of the copter during autopilot flight modes.
Maybe we should change this to look at g.rc_3.servo_out?
this happens on mission/takeoff if your throttle is 0
fixed with this: https://github.com/diydrones/ardupilot/commit/c53dca061a9919b9ed345cb75d85804d96621dab