navigator: always run the loop, even without GPS

If the navigator stops when no more position updates arrive, it won't
switch to land mode when DESCEND is requested by the commander.
This commit is contained in:
Julian Oes
2016-05-17 10:54:48 -04:00
committed by Lorenz Meier
parent fe29d99d62
commit 739d1cfd3f
+2 -2
View File
@@ -338,10 +338,10 @@ Navigator::task_main()
if (pret == 0) {
/* timed out - periodic check for _task_should_exit, etc. */
if (global_pos_available_once) {
PX4_WARN("no GPS - navigator timed out");
global_pos_available_once = false;
PX4_WARN("navigator: global position timeout");
}
continue;
/* 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 */