1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-28 17:54:15 +01:00

Check GGA NMEA sentence for no/invalid fix flag

This commit is contained in:
Werner Backes 2012-05-01 23:42:59 +02:00 committed by James Cotton
parent 217860c187
commit 6b463e5c9e

View File

@ -402,6 +402,11 @@ static bool nmeaProcessGPGGA(GPSPositionData * GpsData, bool* gpsDataUpdated, ch
return false;
}
// check for invalid GPS fix
if (param[6][0] == '0') {
return false;
}
// get number of satellites used in GPS solution
GpsData->Satellites = atoi(param[7]);