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:
parent
23968a64d2
commit
97318e4f84
9 changed files with 107 additions and 65 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue