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:
parent
99d9d7483f
commit
dd2478f582
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue