mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
rebase and recheck
This commit is contained in:
parent
80608f5f1c
commit
37da70c555
5 changed files with 39 additions and 40 deletions
|
@ -577,16 +577,16 @@ bool processRx(timeUs_t currentTimeUs)
|
|||
|
||||
if (isAirmodeActive() && ARMING_FLAG(ARMED)) {
|
||||
if (throttlePercent >= rxConfig()->airModeActivateThreshold) {
|
||||
airmodeIsActivated = true; // Prevent Iterm from being reset
|
||||
airmodeIsActivated = true; // Prevent iterm from being reset
|
||||
}
|
||||
} else {
|
||||
airmodeIsActivated = false;
|
||||
}
|
||||
|
||||
/* 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 */
|
||||
/* 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 && !airmodeIsActivated) {
|
||||
pidResetITerm();
|
||||
pidResetIterm();
|
||||
if (currentPidProfile->pidAtMinThrottle)
|
||||
pidStabilisationState(PID_STABILISATION_ON);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue