Browse Source

AP_MotorsCoax: fix stability patch use of throttle_hover

mission-4.1.18
Leonard Hall 9 years ago committed by Randy Mackay
parent
commit
da05902805
  1. 2
      libraries/AP_Motors/AP_MotorsCoax.cpp

2
libraries/AP_Motors/AP_MotorsCoax.cpp

@ -238,7 +238,7 @@ void AP_MotorsCoax::output_armed_stabilizing()
_thrust_yt_cw = thrust_out - 0.5f * yaw_thrust; _thrust_yt_cw = thrust_out - 0.5f * yaw_thrust;
// limit thrust out for calculation of actuator gains // limit thrust out for calculation of actuator gains
float thrust_out_actuator = MAX(throttle_thrust_hover*0.5,thrust_out); float thrust_out_actuator = MAX(_throttle_hover*0.5f,thrust_out);
if (is_zero(thrust_out_actuator)) { if (is_zero(thrust_out_actuator)) {
limit.roll_pitch = true; limit.roll_pitch = true;

Loading…
Cancel
Save