navigator log RTL messages and don't print global timeout

This commit is contained in:
Daniel Agar
2017-07-08 21:54:04 +02:00
committed by Lorenz Meier
parent f396224d41
commit fbebec5d0f
2 changed files with 16 additions and 17 deletions
+1 -2
View File
@@ -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;