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

Commit 378007a

Browse files
committed
Example1_AutoPVT.ino file is updated for newly added functions.
1 parent 9479135 commit 378007a

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

Diff for: examples/Example13_PVT/Example1_AutoPVT/Example1_AutoPVT.ino

+29-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ void setup()
5454
void loop()
5555
{
5656
// Calling getPVT returns true if there actually is a fresh navigation solution available.
57-
if (myGPS.getPVT())
57+
// Start the reading only when valid LLH is available
58+
if (myGPS.getPVT() && (myGPS.getInvalidLlh() == false))
5859
{
5960
Serial.println();
6061
long latitude = myGPS.getLatitude();
@@ -105,6 +106,33 @@ void loop()
105106
Serial.print(horizontalAccEst);
106107
Serial.print(F(" (mm)"));
107108

109+
int speedAccEst = myGPS.getSpeedAccEst();
110+
Serial.print(F(" SpeedAccEst: "));
111+
Serial.print(speedAccEst);
112+
Serial.print(F(" (mm/s)"));
113+
114+
int headAccEst = myGPS.getHeadingAccEst();
115+
Serial.print(F(" HeadAccEst: "));
116+
Serial.print(headAccEst);
117+
Serial.print(F(" (degrees * 10^-5)"));
118+
119+
if (myGPS.getHeadVehValid() == true) {
120+
int headVeh = myGPS.getHeadVeh();
121+
Serial.print(F(" HeadVeh: "));
122+
Serial.print(headVeh);
123+
Serial.print(F(" (degrees * 10^-5)"));
124+
125+
int magDec = myGPS.getMagDec();
126+
Serial.print(F(" MagDec: "));
127+
Serial.print(magDec);
128+
Serial.print(F(" (degrees * 10^-2)"));
129+
130+
int magAcc = myGPS.getMagAcc();
131+
Serial.print(F(" MagAcc: "));
132+
Serial.print(magAcc);
133+
Serial.print(F(" (degrees * 10^-2)"));
134+
}
135+
108136
Serial.println();
109137
} else {
110138
Serial.print(".");

0 commit comments

Comments
 (0)