mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 13:02:25 +08:00
Fix TECS throttle integrator runaway (#26472)
This commit is contained in:
@@ -590,7 +590,9 @@ void TECSControl::_calcThrottleControlUpdate(float dt, const STERateLimit &limit
|
||||
if (_throttle_setpoint >= param.throttle_max) {
|
||||
throttle_integ_input = math::min(0.f, throttle_integ_input);
|
||||
|
||||
} else if (_throttle_setpoint <= param.throttle_min) {
|
||||
}
|
||||
|
||||
if (_throttle_setpoint <= param.throttle_min) {
|
||||
throttle_integ_input = math::max(0.f, throttle_integ_input);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user