From e7ad08e2090ee3851566c9aa36010379fe06d58a Mon Sep 17 00:00:00 2001 From: Jason Short Date: Sat, 14 Jan 2012 11:20:33 -0800 Subject: [PATCH] adjusted GPS watch dog not to be so aggressive, removed unneeded flag clearing --- ArduCopter/ArduCopter.pde | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ArduCopter/ArduCopter.pde b/ArduCopter/ArduCopter.pde index ee03ee2688..fc1e70692f 100644 --- a/ArduCopter/ArduCopter.pde +++ b/ArduCopter/ArduCopter.pde @@ -1289,7 +1289,7 @@ static void update_GPS(void) //current_loc.lat = -1224318000; // Lat * 10 * *7 //current_loc.alt = 100; // alt * 10 * *7 //return; - if(gps_watchdog < 12){ + if(gps_watchdog < 30){ gps_watchdog++; }else{ // after 12 reads we guess we may have lost GPS signal, stop navigating @@ -1357,8 +1357,6 @@ static void update_GPS(void) update_altitude(); #endif - } else { - g_gps->new_data = false; } }