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:
parent
217860c187
commit
6b463e5c9e
@ -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]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user