Skip to content

Commit

Permalink
Merge pull request #3304 from giacomo892/arming_checks_rework
Browse files Browse the repository at this point in the history
Disable arming in AH for FW unless launch mode is enabled
  • Loading branch information
digitalentity committed Jun 2, 2018
2 parents e28f7fa + 680bf8b commit ff60ce8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/navigation/navigation.c
Expand Up @@ -2467,8 +2467,8 @@ bool navigationTerrainFollowingEnabled(void)

bool navigationBlockArming(void)
{
const bool navBoxModesEnabled = IS_RC_MODE_ACTIVE(BOXNAVRTH) || IS_RC_MODE_ACTIVE(BOXNAVWP) || IS_RC_MODE_ACTIVE(BOXNAVPOSHOLD);
const bool navLaunchComboModesEnabled = isNavLaunchEnabled() && (IS_RC_MODE_ACTIVE(BOXNAVRTH) || IS_RC_MODE_ACTIVE(BOXNAVWP));
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) || IS_RC_MODE_ACTIVE(BOXNAVALTHOLD));
bool shouldBlockArming = false;

if (!navConfig()->general.flags.extra_arming_safety)
Expand Down

0 comments on commit ff60ce8

Please sign in to comment.