[gps_nmea] read hdop and use it as pdop, better than nothing

This commit is contained in:
Felix Ruess
2012-04-22 15:35:02 +02:00
parent fd5ce736d1
commit 60ade3bf0c
+4
View File
@@ -304,6 +304,10 @@ void parse_nmea_GPGGA(void) {
return;
}
}
// we use HDOP here, as the PDOP is not in the message
float hdop = strtof(&gps_nmea.msg_buf[i], &endptr);
gps.pdop = hdop * 100;
while(gps_nmea.msg_buf[i++] != ',') { // next field: altitude
if (i >= gps_nmea.msg_len) {
NMEA_PRINT("p_GPGGA() - skipping incomplete message\n\r");