mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// check for invalid GPS fix
|
||||||
|
if (param[6][0] == '0') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
// get number of satellites used in GPS solution
|
// get number of satellites used in GPS solution
|
||||||
GpsData->Satellites = atoi(param[7]);
|
GpsData->Satellites = atoi(param[7]);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user