nmea: fix speed unit. convert knots to m/s

master
Michal Fratczak 2020-06-02 21:57:35 +02:00
rodzic d5f7b808ff
commit 65bab8c97a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -211,7 +211,7 @@ bool NMEA_parse(const char* Buffer, nmea_t& o_nmea)
// o_nmea.alt = alt; // there is no alt in RMC
// o_nmea.sats = sats; // the is no sats in RMC
o_nmea.speed_over_ground_mps = atof(speedstring);
o_nmea.speed_over_ground_mps = 0.514444444 * atof(speedstring); // knots to m/s
o_nmea.course_over_ground_deg = atof(coursestring);
if(status == 'A')