ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Copter: get_yaw_rate_stabilized_ef incorrectly checks g.rc_3.control_in

Open rmackay9 opened this issue 13 years ago • 2 comments

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?

rmackay9 avatar Jun 03 '13 04:06 rmackay9

this happens on mission/takeoff if your throttle is 0

jpkh avatar Jun 03 '13 05:06 jpkh

fixed with this: https://github.com/diydrones/ardupilot/commit/c53dca061a9919b9ed345cb75d85804d96621dab

rmackay9 avatar Jun 03 '13 08:06 rmackay9