1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 16:25:26 +03:00

Merge pull request #4166 from iNavFlight/de_fix_stuck_failsafe_rth

Make sure failsafe RTH is exited when failsafe condition ends
This commit is contained in:
Konstantin Sharlaimov 2019-01-07 23:24:29 +01:00 committed by GitHub
commit 9dd456182a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3180,8 +3180,10 @@ void activateForcedRTH(void)
void abortForcedRTH(void)
{
// Disable failsafe RTH and make sure we back out of navigation mode to IDLE
// If any navigation mode was active prior to RTH it will be re-enabled with next RX update
posControl.flags.forcedRTHActivated = false;
navProcessFSMEvents(selectNavEventFromBoxModeInput());
navProcessFSMEvents(NAV_FSM_EVENT_SWITCH_TO_IDLE);
}
rthState_e getStateOfForcedRTH(void)