You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
long latitude = ubxDataStruct->lat; // Print the latitude
72
+
double latitude = ubxDataStruct->lat; // Print the latitude
74
73
Serial.print(F("Lat: "));
75
-
Serial.print(latitude / 10000000L);
76
-
Serial.print(F("."));
77
-
Serial.print(abs(latitude % 10000000L));
74
+
Serial.print(latitude / 10000000.0, 7);
78
75
79
-
long longitude = ubxDataStruct->lon; // Print the longitude
76
+
double longitude = ubxDataStruct->lon; // Print the longitude
80
77
Serial.print(F(" Long: "));
81
-
Serial.print(longitude / 10000000L);
82
-
Serial.print(F("."));
83
-
Serial.print(abs(longitude % 10000000L));
78
+
Serial.print(longitude / 10000000.0, 7);
84
79
85
-
long altitude = ubxDataStruct->hMSL; // Print the height above mean sea level
80
+
double altitude = ubxDataStruct->hMSL; // Print the height above mean sea level
86
81
Serial.print(F(" Height: "));
87
-
Serial.print(altitude);
88
-
Serial.print(F(" (mm)"));
82
+
Serial.print(altitude / 1000.0, 3);
89
83
90
84
uint8_t fixType = ubxDataStruct->fixType; // Print the fix type
91
85
Serial.print(F(" Fix: "));
@@ -157,7 +151,7 @@ void setup()
157
151
//"When the receiver boots, the host should send 'current' and 'next' keys in one message." - Use setDynamicSPARTNKeys for this.
158
152
//"Every time the 'current' key is expired, 'next' takes its place."
159
153
//"Therefore the host should then retrieve the new 'next' key and send only that." - Use setDynamicSPARTNKey for this.
160
-
// The key can be provided in binary format or in ASCII Hex format, but in both cases keyLengthBytes _must_ represent the binary key length in bytes.
154
+
// The key can be provided in binary (uint8_t) format or in ASCII Hex (char) format, but in both cases keyLengthBytes _must_ represent the binary key length in bytes.
161
155
if (ok) ok = myGNSS.setDynamicSPARTNKeys(currentKeyLengthBytes, currentKeyGPSWeek, currentKeyGPSToW, currentDynamicKey,
0 commit comments