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
{{ message }}
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: src/SparkFun_Ublox_Arduino_Library.h
+49-41Lines changed: 49 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -287,39 +287,47 @@ class SFE_UBLOX_GPS
287
287
288
288
boolean waitForResponse(uint8_t requestedClass, uint8_t requestedID, uint16_t maxTime = 250); //Poll the module until and ack is received
289
289
290
-
boolean assumeAutoPVT(boolean enabled, boolean implicitUpdate = true); //In case no config access to the GPS is possible and PVT is send cyclically already
291
-
boolean setAutoPVT(boolean enabled, uint16_t maxWait = 250); //Enable/disable automatic PVT reports at the navigation frequency
292
-
boolean getPVT(uint16_t maxWait = 1000); //Query module for latest group of datums and load global vars: lat, long, alt, speed, SIV, accuracies, etc. If autoPVT is disabled, performs an explicit poll and waits, if enabled does not block. Retruns true if new PVT is available.
290
+
// getPVT will only return data once in each navigation cycle. By default, that is once per second.
291
+
// Therefore we should set getPVTmaxWait to slightly longer than that.
292
+
// If you change the navigation frequency to (e.g.) 4Hz using setNavigationFrequency(4)
293
+
// then you should use a shorter maxWait for getPVT. 300msec would be about right: getPVT(300)
294
+
// The same is true for getHPPOSLLH.
295
+
#definegetPVTmaxWait1100// Default maxWait for getPVT and all functions which call it
296
+
#definegetHPPOSLLHmaxWait1100// Default maxWait for getHPPOSLLH and all functions which call it
297
+
298
+
boolean assumeAutoPVT(boolean enabled, boolean implicitUpdate = true); //In case no config access to the GPS is possible and PVT is send cyclically already
299
+
boolean setAutoPVT(boolean enabled, uint16_t maxWait = 250); //Enable/disable automatic PVT reports at the navigation frequency
300
+
boolean getPVT(uint16_t maxWait = getPVTmaxWait); //Query module for latest group of datums and load global vars: lat, long, alt, speed, SIV, accuracies, etc. If autoPVT is disabled, performs an explicit poll and waits, if enabled does not block. Retruns true if new PVT is available.
293
301
boolean setAutoPVT(boolean enabled, boolean implicitUpdate, uint16_t maxWait = 250); //Enable/disable automatic PVT reports at the navigation frequency, with implicitUpdate == false accessing stale data will not issue parsing of data in the rxbuffer of your interface, instead you have to call checkUblox when you want to perform an update
294
-
boolean getHPPOSLLH(uint16_t maxWait = 1000); //Query module for latest group of datums and load global vars: lat, long, alt, speed, SIV, accuracies, etc. If autoPVT is disabled, performs an explicit poll and waits, if enabled does not block. Retruns true if new PVT is available.
295
-
296
-
int32_tgetLatitude(uint16_t maxWait = 250); //Returns the current latitude in degrees * 10^-7. Auto selects between HighPrecision and Regular depending on ability of module.
297
-
int32_tgetLongitude(uint16_t maxWait = 250); //Returns the current longitude in degrees * 10-7. Auto selects between HighPrecision and Regular depending on ability of module.
298
-
int32_tgetAltitude(uint16_t maxWait = 250); //Returns the current altitude in mm above ellipsoid
299
-
int32_tgetAltitudeMSL(uint16_t maxWait = 250); //Returns the current altitude in mm above mean sea level
300
-
uint8_tgetSIV(uint16_t maxWait = 250); //Returns number of sats used in fix
301
-
uint8_tgetFixType(uint16_t maxWait = 250); //Returns the type of fix: 0=no, 3=3D, 4=GNSS+Deadreckoning
boolean getHPPOSLLH(uint16_t maxWait = getHPPOSLLHmaxWait);//Query module for latest group of datums and load global vars: lat, long, alt, speed, SIV, accuracies, etc. If autoPVT is disabled, performs an explicit poll and waits, if enabled does not block. Retruns true if new PVT is available.
303
+
304
+
int32_tgetLatitude(uint16_t maxWait = getPVTmaxWait); //Returns the current latitude in degrees * 10^-7. Auto selects between HighPrecision and Regular depending on ability of module.
305
+
int32_tgetLongitude(uint16_t maxWait = getPVTmaxWait); //Returns the current longitude in degrees * 10-7. Auto selects between HighPrecision and Regular depending on ability of module.
306
+
int32_tgetAltitude(uint16_t maxWait = getPVTmaxWait); //Returns the current altitude in mm above ellipsoid
307
+
int32_tgetAltitudeMSL(uint16_t maxWait = getPVTmaxWait); //Returns the current altitude in mm above mean sea level
308
+
uint8_tgetSIV(uint16_t maxWait = getPVTmaxWait); //Returns number of sats used in fix
309
+
uint8_tgetFixType(uint16_t maxWait = getPVTmaxWait); //Returns the type of fix: 0=no, 3=3D, 4=GNSS+Deadreckoning
boolean setPortOutput(uint8_t portID, uint8_t comSettings, uint16_t maxWait = 250); //Configure a given port to output UBX, NMEA, RTCM3 or a combination thereof
@@ -366,30 +374,30 @@ class SFE_UBLOX_GPS
366
374
367
375
boolean getSurveyStatus(uint16_t maxWait); //Reads survey in status and sets the global variables
368
376
369
-
uint32_tgetPositionAccuracy(uint16_t maxWait = 500); //Returns the 3D accuracy of the current high-precision fix, in mm. Supported on NEO-M8P, ZED-F9P,
377
+
uint32_tgetPositionAccuracy(uint16_t maxWait = 1100); //Returns the 3D accuracy of the current high-precision fix, in mm. Supported on NEO-M8P, ZED-F9P,
370
378
371
379
uint8_tgetProtocolVersionHigh(uint16_t maxWait = 500); //Returns the PROTVER XX.00 from UBX-MON-VER register
372
380
uint8_tgetProtocolVersionLow(uint16_t maxWait = 500); //Returns the PROTVER 00.XX from UBX-MON-VER register
0 commit comments