AP_Motors: handle boost in spool up and down the same way

This commit is contained in:
Leonard Hall 2018-10-07 14:04:16 +10:30 committed by Randy Mackay
parent d29a47d605
commit 2f87d8808f
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ void AP_MotorsMulticopter::output_logic()
// initialise motor failure variables // initialise motor failure variables
_thrust_boost = false; _thrust_boost = false;
_thrust_boost_ratio = 0.0f; _thrust_boost_ratio = MAX(0.0, _thrust_boost_ratio - 1.0 / (_spool_up_time * _loop_rate));
break; break;
case THROTTLE_UNLIMITED: case THROTTLE_UNLIMITED: