mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 19:33:34 +08:00
navigator log RTL messages and don't print global timeout
This commit is contained in:
committed by
Lorenz Meier
parent
f396224d41
commit
fbebec5d0f
@@ -286,14 +286,13 @@ Navigator::task_main()
|
||||
/* timed out - periodic check for _task_should_exit, etc. */
|
||||
if (global_pos_available_once) {
|
||||
global_pos_available_once = false;
|
||||
PX4_WARN("global position timeout");
|
||||
}
|
||||
|
||||
/* Let the loop run anyway, don't do `continue` here. */
|
||||
|
||||
} else if (pret < 0) {
|
||||
/* this is undesirable but not much we can do - might want to flag unhappy status */
|
||||
PX4_ERR("nav: poll error %d, %d", pret, errno);
|
||||
PX4_ERR("poll error %d, %d", pret, errno);
|
||||
usleep(10000);
|
||||
continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user