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

Commit 28dcfaf

Browse files
authored
Merge pull request #82 from sparkfun/Correcting_PVT_PDOP
Correcting PVT PDOP from Long to Int
2 parents 6295ad9 + 1c57ca8 commit 28dcfaf

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

examples/Example13_PVT/Example1_AutoPVT/Example1_AutoPVT.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ void loop()
7575
Serial.print(F(" SIV: "));
7676
Serial.print(SIV);
7777

78+
int PDOP = myGPS.getPDOP();
79+
Serial.print(F(" PDOP: "));
80+
Serial.print(PDOP);
81+
Serial.print(F(" (m * 10^-2)"));
82+
7883
Serial.println();
7984
} else {
8085
Serial.print(".");

src/SparkFun_Ublox_Arduino_Library.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ void SFE_UBLOX_GPS::processUBXpacket(ubxPacket *msg)
722722
altitudeMSL = extractLong(36 - startingSpot);
723723
groundSpeed = extractLong(60 - startingSpot);
724724
headingOfMotion = extractLong(64 - startingSpot);
725-
pDOP = extractLong(76 - startingSpot);
725+
pDOP = extractInt(76 - startingSpot);
726726

727727
//Mark all datums as fresh (not read before)
728728
moduleQueried.gpsiTOW = true;

0 commit comments

Comments
 (0)