mirror of https://github.com/ArduPilot/ardupilot
GPS Light fix
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1815 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
bcc1bf65f2
commit
5e25ade9dc
|
@ -783,8 +783,10 @@ void update_GPS(void)
|
||||||
g_gps->update();
|
g_gps->update();
|
||||||
update_GPS_light();
|
update_GPS_light();
|
||||||
|
|
||||||
|
if(g_gps->new_data)
|
||||||
|
GPS_failure_counter = 3;
|
||||||
|
|
||||||
if (g_gps->new_data && g_gps->fix) {
|
if (g_gps->new_data && g_gps->fix) {
|
||||||
GPS_failure_counter = 3;
|
|
||||||
|
|
||||||
// XXX We should be sending GPS data off one of the regular loops so that we send
|
// XXX We should be sending GPS data off one of the regular loops so that we send
|
||||||
// no-GPS-fix data too
|
// no-GPS-fix data too
|
||||||
|
|
Loading…
Reference in New Issue