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:
commit
9dd456182a
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue