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

Commit ea2aa70

Browse files
committed
More improvements for packetAuto
1 parent 8cdf2d8 commit ea2aa70

File tree

4 files changed

+411
-157
lines changed

4 files changed

+411
-157
lines changed

examples/Dead Reckoning/Example5_getHNRData/Example5_getHNRData.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ void setup()
5555
Serial.println(F("setHNRNavigationRate was successful"));
5656
else
5757
Serial.println(F("setHNRNavigationRate was NOT successful"));
58+
59+
myGPS.setAutoHNRAtt(false); //Make sure auto HNR attitude messages are disabled
60+
myGPS.setAutoHNRDyn(false); //Make sure auto HNR vehicle dynamics messages are disabled
61+
myGPS.setAutoHNRPVT(false); //Make sure auto HNR PVT messages are disabled
5862
}
5963

6064
void loop()

examples/Dead Reckoning/Example6_getAutoHNRData/Example6_getAutoHNRData.ino

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void setup()
4343

4444
Wire.begin();
4545

46-
myGPS.enableDebugging(); // Uncomment this line to enable debug messages on Serial
46+
//myGPS.enableDebugging(); // Uncomment this line to enable debug messages on Serial
4747

4848
if (myGPS.begin() == false) //Connect to the Ublox module using Wire port
4949
{
@@ -60,8 +60,16 @@ void setup()
6060
Serial.println(F("setHNRNavigationRate was NOT successful"));
6161

6262
usingAutoHNRAtt = myGPS.setAutoHNRAtt(true); //Attempt to enable auto HNR attitude messages
63+
if (usingAutoHNRAtt)
64+
Serial.println(F("AutoHNRAtt successful"));
65+
6366
usingAutoHNRDyn = myGPS.setAutoHNRDyn(true); //Attempt to enable auto HNR vehicle dynamics messages
67+
if (usingAutoHNRDyn)
68+
Serial.println(F("AutoHNRDyn successful"));
69+
6470
usingAutoHNRPVT = myGPS.setAutoHNRPVT(true); //Attempt to enable auto HNR PVT messages
71+
if (usingAutoHNRPVT)
72+
Serial.println(F("AutoHNRPVT successful"));
6573
}
6674

6775
void loop()

0 commit comments

Comments
 (0)