mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 07:13:34 +08:00
fix datalink loss detection logic
This commit is contained in:
@@ -1534,6 +1534,10 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
mavlink_log_critical(mavlink_fd, "data link %i regained", i);
|
mavlink_log_critical(mavlink_fd, "data link %i regained", i);
|
||||||
telemetry_lost[i] = false;
|
telemetry_lost[i] = false;
|
||||||
have_link = true;
|
have_link = true;
|
||||||
|
} else if (!telemetry_lost[i]) {
|
||||||
|
/* telemetry was healthy also in last iteration
|
||||||
|
* we don't have to check a timeout */
|
||||||
|
have_link = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user