mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 16:50:35 +08:00
Commander: Only report GPS lost errors if armed
This commit is contained in:
@@ -2457,7 +2457,9 @@ int commander_thread_main(int argc, char *argv[])
|
||||
} else if (!status_flags.gps_failure) {
|
||||
status_flags.gps_failure = true;
|
||||
status_changed = true;
|
||||
mavlink_log_critical(&mavlink_log_pub, "GPS fix lost");
|
||||
if (status.arming_state == vehicle_status_s::ARMING_STATE_ARMED) {
|
||||
mavlink_log_critical(&mavlink_log_pub, "GPS fix lost");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user