mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 13:58:53 +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