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

add sannity check in hot mixprofile switching, and fix cli

This commit is contained in:
shota 2022-11-11 04:47:32 +09:00
parent 23968a64d2
commit 97318e4f84
9 changed files with 107 additions and 65 deletions

View file

@ -4263,6 +4263,13 @@ bool navigationIsExecutingAnEmergencyLanding(void)
return navGetCurrentStateFlags() & NAV_CTL_EMERG;
}
bool navigationInAnyMode(void)
{
navigationFSMStateFlags_t stateFlags = navGetCurrentStateFlags();
return !(stateFlags ==0);
}
bool navigationInAutomaticThrottleMode(void)
{
navigationFSMStateFlags_t stateFlags = navGetCurrentStateFlags();