mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 19:53:33 +08:00
Fix navigator timeout logic
This commit is contained in:
@@ -347,10 +347,11 @@ Navigator::task_main()
|
|||||||
/* this is undesirable but not much we can do - might want to flag unhappy status */
|
/* this is undesirable but not much we can do - might want to flag unhappy status */
|
||||||
PX4_WARN("nav: poll error %d, %d", pret, errno);
|
PX4_WARN("nav: poll error %d, %d", pret, errno);
|
||||||
continue;
|
continue;
|
||||||
|
} else {
|
||||||
|
/* success, global pos was available */
|
||||||
|
global_pos_available_once = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
global_pos_available_once = true;
|
|
||||||
|
|
||||||
perf_begin(_loop_perf);
|
perf_begin(_loop_perf);
|
||||||
|
|
||||||
bool updated;
|
bool updated;
|
||||||
|
|||||||
Reference in New Issue
Block a user