From d8e0cbc78fb2804e1cca341ffd79666b2a5a0cf1 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Sun, 22 Jul 2012 02:17:58 -0500 Subject: [PATCH] Make inadequate lock a warning instead of error/critical from GPS. This allows flying indoors. --- flight/Modules/GPS/GPS.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/Modules/GPS/GPS.c b/flight/Modules/GPS/GPS.c index 5851ac10d..c3d871318 100644 --- a/flight/Modules/GPS/GPS.c +++ b/flight/Modules/GPS/GPS.c @@ -232,7 +232,7 @@ static void gpsTask(void *parameters) // either the GPS is not plugged in or a hardware problem or the GPS has locked up. uint8_t status = GPSPOSITION_STATUS_NOGPS; GPSPositionStatusSet(&status); - AlarmsSet(SYSTEMALARMS_ALARM_GPS, SYSTEMALARMS_ALARM_ERROR); + AlarmsSet(SYSTEMALARMS_ALARM_GPS, SYSTEMALARMS_ALARM_WARNING); } else { // we appear to be receiving GPS sentences OK, we've had an update //criteria for GPS-OK taken from this post... @@ -250,7 +250,7 @@ static void gpsTask(void *parameters) } else if (gpsposition.Status == GPSPOSITION_STATUS_FIX3D) AlarmsSet(SYSTEMALARMS_ALARM_GPS, SYSTEMALARMS_ALARM_WARNING); else - AlarmsSet(SYSTEMALARMS_ALARM_GPS, SYSTEMALARMS_ALARM_CRITICAL); + AlarmsSet(SYSTEMALARMS_ALARM_GPS, SYSTEMALARMS_ALARM_WARNING); } }