AP_Motors: Freeze motor lost index on enabling thrust boost
This commit is contained in:
parent
8adddcc8b8
commit
485584f732
@ -339,8 +339,8 @@ void AP_MotorsMatrix::check_for_failed_motor(float throttle_thrust_best_plus_adj
|
|||||||
// record highest thrust command
|
// record highest thrust command
|
||||||
if (_thrust_rpyt_out_filt[i] > rpyt_high) {
|
if (_thrust_rpyt_out_filt[i] > rpyt_high) {
|
||||||
rpyt_high = _thrust_rpyt_out_filt[i];
|
rpyt_high = _thrust_rpyt_out_filt[i];
|
||||||
// hold motor lost index constant while thrust balance is true
|
// hold motor lost index constant while thrust boost is active
|
||||||
if (_thrust_balanced) {
|
if (!_thrust_boost) {
|
||||||
_motor_lost_index = i;
|
_motor_lost_index = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user