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
f8b0c61e63
commit
46e8c2e67a
|
@ -783,9 +783,11 @@ void update_GPS(void)
|
|||
g_gps->update();
|
||||
update_GPS_light();
|
||||
|
||||
if (g_gps->new_data && g_gps->fix) {
|
||||
if(g_gps->new_data)
|
||||
GPS_failure_counter = 3;
|
||||
|
||||
if (g_gps->new_data && g_gps->fix) {
|
||||
|
||||
// XXX We should be sending GPS data off one of the regular loops so that we send
|
||||
// no-GPS-fix data too
|
||||
#if GCS_PROTOCOL != GCS_PROTOCOL_MAVLINK
|
||||
|
|
Loading…
Reference in New Issue