Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Commit 40719ed

Browse files
author
Nathan Seidle
committed
Fix incorrect register nums in getRELPOSNED.
1 parent dc75c67 commit 40719ed

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/SparkFun_Ublox_Arduino_Library.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -2660,16 +2660,16 @@ boolean SFE_UBLOX_GPS::getRELPOSNED(uint16_t maxWait)
26602660

26612661
uint32_t tempAcc;
26622662

2663-
tempAcc = extractLong(24);
2663+
tempAcc = extractLong(36);
26642664
relPosInfo.accN = tempAcc / 10000.0; //Convert 0.1 mm to m
26652665

2666-
tempAcc = extractLong(28);
2666+
tempAcc = extractLong(40);
26672667
relPosInfo.accE = tempAcc / 10000.0; //Convert 0.1 mm to m
26682668

2669-
tempAcc = extractLong(32);
2669+
tempAcc = extractLong(44);
26702670
relPosInfo.accD = tempAcc / 10000.0; //Convert 0.1 mm to m
26712671

2672-
uint8_t flags = payloadCfg[36];
2672+
uint8_t flags = payloadCfg[60];
26732673

26742674
relPosInfo.gnssFixOk = flags & (1 << 0);
26752675
relPosInfo.diffSoln = flags & (1 << 1);

0 commit comments

Comments
 (0)