mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-29 02:51:17 +00:00
fix #363 gps altitude - based on tip by @a-f-G-U-C
This commit is contained in:
parent
0a9f7147f3
commit
c007302564
@ -165,7 +165,7 @@ void UBloxGPS::doTask()
|
|||||||
|
|
||||||
latitude = ublox.getLatitude(0);
|
latitude = ublox.getLatitude(0);
|
||||||
longitude = ublox.getLongitude(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
|
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);
|
heading = ublox.getHeading(0);
|
||||||
numSatellites = ublox.getSIV(0);
|
numSatellites = ublox.getSIV(0);
|
||||||
|
Loading…
Reference in New Issue
Block a user