fix #363 gps altitude - based on tip by @a-f-G-U-C

pull/368/head
geeksville 2020-09-08 10:28:53 -07:00
rodzic 0a9f7147f3
commit c007302564
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -165,7 +165,7 @@ void UBloxGPS::doTask()
latitude = ublox.getLatitude(0);
longitude = ublox.getLongitude(0);
altitude = ublox.getAltitude(0) / 1000; // in mm convert to meters
altitude = ublox.getAltitudeMSL(0) / 1000; // in mm convert to meters
dop = ublox.getPDOP(0); // PDOP (an accuracy metric) is reported in 10^2 units so we have to scale down when we use it
heading = ublox.getHeading(0);
numSatellites = ublox.getSIV(0);