Add GPS altitude parsing

replace/f4a19a22a4ad6d518a389f1381453c8ec8df87dd
Niccolò Izzo 2021-02-11 09:43:51 +01:00
rodzic 3ea428e8f8
commit b570f3b690
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -51,6 +51,7 @@ typedef struct
sat_t satellites[12]; // Details about satellites in view
float latitude; // Latitude coordinates
float longitude; // Longitude coordinates
float altitude; // Antenna altitude above mean sea level (geoid) in m
float speed; // Ground speed in km/h
float tmg_mag; // Course over ground, degrees, magnetic
float tmg_true; // Course over ground, degrees, true

Wyświetl plik

@ -51,6 +51,7 @@ void gps_taskFunc(char *line, int len, gps_t *state)
if (minmea_parse_gga(&frame, line)) {
state->fix_quality = frame.fix_quality;
state->satellites_tracked = frame.satellites_tracked;
state->altitude = minmea_tofloat(&frame.altitude);
}
} break;