mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-09 07:10:35 +08:00
FlightTaskManualStabilized: replace minimum throttle with minum throttle specific for stabilized
This commit is contained in:
committed by
Lorenz Meier
parent
65603d7de7
commit
59087afac8
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user