mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 12:40:36 +08:00
commander mission_result check time and instance
This commit is contained in:
committed by
Lorenz Meier
parent
7a9f7eb424
commit
a4be7ae7d0
@@ -2032,7 +2032,9 @@ int commander_thread_main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
// Provide feedback on mission state
|
||||
if (!_mission_result.valid && hotplug_timeout && _home.timestamp > 0) {
|
||||
if ((_mission_result.timestamp > commander_boot_timestamp) && hotplug_timeout &&
|
||||
(_mission_result.instance_count > 0) && !_mission_result.valid) {
|
||||
|
||||
mavlink_log_critical(&mavlink_log_pub, "Planned mission fails check. Please upload again.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user