mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-25 18:18:49 -04:00
adjusted GPS watch dog not to be so aggressive,
removed unneeded flag clearing
This commit is contained in:
parent
95ac9d163e
commit
89343ae306
@ -1289,7 +1289,7 @@ static void update_GPS(void)
|
|||||||
//current_loc.lat = -1224318000; // Lat * 10 * *7
|
//current_loc.lat = -1224318000; // Lat * 10 * *7
|
||||||
//current_loc.alt = 100; // alt * 10 * *7
|
//current_loc.alt = 100; // alt * 10 * *7
|
||||||
//return;
|
//return;
|
||||||
if(gps_watchdog < 12){
|
if(gps_watchdog < 30){
|
||||||
gps_watchdog++;
|
gps_watchdog++;
|
||||||
}else{
|
}else{
|
||||||
// after 12 reads we guess we may have lost GPS signal, stop navigating
|
// after 12 reads we guess we may have lost GPS signal, stop navigating
|
||||||
@ -1357,8 +1357,6 @@ static void update_GPS(void)
|
|||||||
update_altitude();
|
update_altitude();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} else {
|
|
||||||
g_gps->new_data = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user