From 46e8c2e67aacac2de30357aa39705690d7491b72 Mon Sep 17 00:00:00 2001 From: jasonshort Date: Sat, 26 Mar 2011 06:53:27 +0000 Subject: [PATCH] GPS Light fix git-svn-id: https://arducopter.googlecode.com/svn/trunk@1815 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/ArduCopterMega.pde | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ArduCopterMega/ArduCopterMega.pde b/ArduCopterMega/ArduCopterMega.pde index 1002f24732..7b871153ef 100644 --- a/ArduCopterMega/ArduCopterMega.pde +++ b/ArduCopterMega/ArduCopterMega.pde @@ -783,8 +783,10 @@ void update_GPS(void) g_gps->update(); update_GPS_light(); + if(g_gps->new_data) + GPS_failure_counter = 3; + 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 // no-GPS-fix data too