Fix TECS throttle integrator runaway (#26472)

This commit is contained in:
Jaeyoung Lim
2026-02-13 05:41:27 -07:00
committed by GitHub
parent 14cbcee49f
commit b9f4de0b51
+3 -1
View File
@@ -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);
}