Skip to content

Commit

Permalink
Include trusted alt for healthy position
Browse files Browse the repository at this point in the history
  • Loading branch information
breadoven committed May 24, 2024
1 parent 49008f4 commit 9081429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/navigation/navigation.c
Original file line number Diff line number Diff line change
Expand Up @@ -4437,7 +4437,7 @@ uint32_t distanceToFirstWP(void)

bool navigationPositionEstimateIsHealthy(void)
{
return (posControl.flags.estPosStatus >= EST_USABLE) && STATE(GPS_FIX_HOME);
return posControl.flags.estPosStatus >= EST_USABLE && posControl.flags.estAltStatus >= EST_USABLE && STATE(GPS_FIX_HOME);
}

navArmingBlocker_e navigationIsBlockingArming(bool *usedBypass)
Expand Down

0 comments on commit 9081429

Please sign in to comment.