Browse Source

AP_Motors: Freeze motor lost index on enabling thrust boost

zr-v5.1
Leonard Hall 6 years ago committed by Randy Mackay
parent
commit
f840f96276
  1. 4
      libraries/AP_Motors/AP_MotorsMatrix.cpp

4
libraries/AP_Motors/AP_MotorsMatrix.cpp

@ -339,8 +339,8 @@ void AP_MotorsMatrix::check_for_failed_motor(float throttle_thrust_best_plus_adj @@ -339,8 +339,8 @@ void AP_MotorsMatrix::check_for_failed_motor(float throttle_thrust_best_plus_adj
// record highest thrust command
if (_thrust_rpyt_out_filt[i] > rpyt_high) {
rpyt_high = _thrust_rpyt_out_filt[i];
// hold motor lost index constant while thrust balance is true
if (_thrust_balanced) {
// hold motor lost index constant while thrust boost is active
if (!_thrust_boost) {
_motor_lost_index = i;
}
}

Loading…
Cancel
Save