FlightTaskManualStabilized: replace minimum throttle with minum throttle specific for stabilized

This commit is contained in:
Dennis Mannhart
2018-03-01 17:20:07 +01:00
committed by Lorenz Meier
parent 65603d7de7
commit 59087afac8
2 changed files with 2 additions and 2 deletions
@@ -122,7 +122,7 @@ float FlightTaskManualStabilized::_throttleCurve()
float throttle = -((_sticks(2) - 1.0f) * 0.5f);
if (throttle < 0.5f) {
return (_throttle_hover.get() - _throttle_min.get()) / 0.5f * throttle + _throttle_min.get();
return (_throttle_hover.get() - _throttle_min_stabilized.get()) / 0.5f * throttle + _throttle_min_stabilized.get();
} else {
return (_throttle_max.get() - _throttle_hover.get()) / 0.5f * (throttle - 1.0f) + _throttle_max.get();