Browse Source
Merge pull request #7829 from breadoven/abo_failsafe_RTH_RCPos_Fix
Failsafe RC adjustment bug fix
master
Paweł Spychalski
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
7 deletions
-
src/main/navigation/navigation.c
|
|
@ -3200,13 +3200,9 @@ static void processNavigationRCAdjustments(void) |
|
|
|
} |
|
|
|
|
|
|
|
if (navStateFlags & NAV_RC_POS) { |
|
|
|
if (!FLIGHT_MODE(FAILSAFE_MODE)) { |
|
|
|
posControl.flags.isAdjustingPosition = adjustPositionFromRCInput(); |
|
|
|
} |
|
|
|
else { |
|
|
|
if (!STATE(FIXED_WING_LEGACY)) { |
|
|
|
resetMulticopterBrakingMode(); |
|
|
|
} |
|
|
|
posControl.flags.isAdjustingPosition = adjustPositionFromRCInput() && !FLIGHT_MODE(FAILSAFE_MODE); |
|
|
|
if (STATE(MULTIROTOR) && FLIGHT_MODE(FAILSAFE_MODE)) { |
|
|
|
resetMulticopterBrakingMode(); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|