File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -3894,6 +3894,24 @@ static void cliStatus(char *cmdline)
38943894 cliPrintErrorLinef ("Invalid setting: %s" , buf );
38953895 }
38963896 }
3897+
3898+ #if defined(USE_OSD )
3899+ if (armingFlags & ARMING_DISABLED_NAVIGATION_UNSAFE ) {
3900+ navArmingBlocker_e reason = navigationIsBlockingArming (NULL );
3901+ if (reason & NAV_ARMING_BLOCKER_JUMP_WAYPOINT_ERROR )
3902+ cliPrintLinef (" %s" , OSD_MSG_JUMP_WP_MISCONFIG );
3903+ if (reason & NAV_ARMING_BLOCKER_MISSING_GPS_FIX ) {
3904+ cliPrintLinef (" %s" , OSD_MSG_WAITING_GPS_FIX );
3905+ } else {
3906+ if (reason & NAV_ARMING_BLOCKER_NAV_IS_ALREADY_ACTIVE )
3907+ cliPrintLinef (" %s" , OSD_MSG_DISABLE_NAV_FIRST );
3908+ if (reason & NAV_ARMING_BLOCKER_FIRST_WAYPOINT_TOO_FAR )
3909+ cliPrintLinef (" FIRST WP TOO FAR" );
3910+ }
3911+ }
3912+ #endif
3913+
3914+
38973915#else
38983916 cliPrintLinef ("Arming disabled flags: 0x%lx" , armingFlags & ARMING_DISABLED_ALL_FLAGS );
38993917#endif
You can’t perform that action at this time.
0 commit comments