From de675845afe69e5d1e622382cd5db6ed645bc90c Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 22 Jun 2016 00:04:31 +0200 Subject: [PATCH] Fix navigator timeout logic --- src/modules/navigator/navigator_main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index c8b321fd62..fd7a54ff6e 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -347,10 +347,11 @@ Navigator::task_main() /* this is undesirable but not much we can do - might want to flag unhappy status */ PX4_WARN("nav: poll error %d, %d", pret, errno); continue; + } else { + /* success, global pos was available */ + global_pos_available_once = true; } - global_pos_available_once = true; - perf_begin(_loop_perf); bool updated;