mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-22 07:45:24 +03:00
Disable arming in AH for FW unless launch mode is enabled
This commit is contained in:
parent
5c76229981
commit
680bf8b424
1 changed files with 2 additions and 2 deletions
|
@ -2435,8 +2435,8 @@ bool navigationTerrainFollowingEnabled(void)
|
||||||
|
|
||||||
bool navigationBlockArming(void)
|
bool navigationBlockArming(void)
|
||||||
{
|
{
|
||||||
const bool navBoxModesEnabled = IS_RC_MODE_ACTIVE(BOXNAVRTH) || IS_RC_MODE_ACTIVE(BOXNAVWP) || IS_RC_MODE_ACTIVE(BOXNAVPOSHOLD);
|
const bool navBoxModesEnabled = IS_RC_MODE_ACTIVE(BOXNAVRTH) || IS_RC_MODE_ACTIVE(BOXNAVWP) || IS_RC_MODE_ACTIVE(BOXNAVPOSHOLD) || (STATE(FIXED_WING) && IS_RC_MODE_ACTIVE(BOXNAVALTHOLD));
|
||||||
const bool navLaunchComboModesEnabled = isNavLaunchEnabled() && (IS_RC_MODE_ACTIVE(BOXNAVRTH) || IS_RC_MODE_ACTIVE(BOXNAVWP));
|
const bool navLaunchComboModesEnabled = isNavLaunchEnabled() && (IS_RC_MODE_ACTIVE(BOXNAVRTH) || IS_RC_MODE_ACTIVE(BOXNAVWP) || IS_RC_MODE_ACTIVE(BOXNAVALTHOLD));
|
||||||
bool shouldBlockArming = false;
|
bool shouldBlockArming = false;
|
||||||
|
|
||||||
if (!navConfig()->general.flags.extra_arming_safety)
|
if (!navConfig()->general.flags.extra_arming_safety)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue