1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-22 15:55:48 +03:00

Prevent unnecessary Iterm windup during failsafe and when not armed

This commit is contained in:
borisbstyle 2016-02-09 12:10:47 +01:00
parent 99d9d7483f
commit dd2478f582

View file

@ -483,7 +483,7 @@ void processRx(void)
/* In airmode Iterm should be prevented to grow when Low thottle and Roll + Pitch Centered.
This is needed to prevent Iterm winding on the ground, but keep full stabilisation on 0 throttle while in air */
if (throttleStatus == THROTTLE_LOW) {
if (IS_RC_MODE_ACTIVE(BOXAIRMODE)) {
if (IS_RC_MODE_ACTIVE(BOXAIRMODE) && !failsafeIsActive() && ARMING_FLAG(ARMED)) {
if (rollPitchStatus == CENTERED) {
antiWindupProtection = true;
} else {