1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

AIR MODE implementation

This commit is contained in:
borisbstyle 2015-12-06 02:19:35 +01:00
parent b3f0bd1402
commit 83d186057f
5 changed files with 88 additions and 30 deletions

View file

@ -565,7 +565,7 @@ void processRx(void)
throttleStatus_e throttleStatus = calculateThrottleStatus(&masterConfig.rxConfig, masterConfig.flight3DConfig.deadband3d_throttle);
if (throttleStatus == THROTTLE_LOW && !(IS_RC_MODE_ACTIVE(BOXIDLE_UP))) {
if ((throttleStatus == THROTTLE_LOW && !(IS_RC_MODE_ACTIVE(BOXAIRMODE))) || !(ARMING_FLAG(ARMED))) {
pidResetErrorAngle();
pidResetErrorGyro();
}