@@ -85,14 +85,15 @@ const uint8_t UBX_CLASS_LOG = 0x21;
8585const uint8_t UBX_CLASS_SEC = 0x27 ;
8686const uint8_t UBX_CLASS_HNR = 0x28 ;
8787
88- const uint8_t UBX_CFG_PRT = 0x00 ;
89- const uint8_t UBX_CFG_RATE = 0x08 ;
88+ const uint8_t UBX_CFG_PRT = 0x00 ; // Used to configure port specifics
89+ const uint8_t UBX_CFG_RATE = 0x08 ; // Used to set port baud rates
9090
9191const uint8_t UBX_CFG_TMODE3 = 0x71 ; // Used to enable Survey In Mode
9292const uint8_t SVIN_MODE_DISABLE = 0x00 ;
9393const uint8_t SVIN_MODE_ENABLE = 0x01 ;
9494
9595const uint8_t UBX_NAV_SVIN = 0x3B ; // Used for checking Survey In status
96+ const uint8_t UBX_NAV_HPPOSECEF = 0x13 ; // Find our positional accuracy (high precision)
9697
9798// The following are used to enable RTCM messages
9899const uint8_t UBX_CFG_MSG = 0x01 ;
@@ -132,7 +133,7 @@ class SFE_UBLOX_GPS
132133 SFE_UBLOX_GPS (void );
133134
134135 // By default use the default I2C address, and use Wire port
135- void begin (TwoWire &wirePort);
136+ void begin (TwoWire &wirePort = Wire );
136137
137138 boolean isConnected (); // Returns turn if device answers on _gpsI2Caddress address
138139
@@ -167,6 +168,8 @@ class SFE_UBLOX_GPS
167168 boolean setRTCMport (uint8_t portID, boolean enableRTCM3, uint16_t maxWait = 250 ); // Enable/Disable RTCM3 (both input and output) for a given port
168169
169170 boolean getPortSettings (uint8_t portID, uint16_t maxWait = 250 ); // Returns the current protocol bits in the UBX-CFG-PRT command for a given port
171+
172+ uint32_t getPositionAccuracy (uint16_t maxWait = 500 ); // Returns the 3D accuracy of the current high-precision fix
170173
171174 struct svinStructure {
172175 boolean active;
@@ -176,7 +179,7 @@ class SFE_UBLOX_GPS
176179 } svin;
177180
178181 uint16_t rtcmFrameCounter = 0 ;
179-
182+
180183 private:
181184
182185 // Depending on the sentence type the processor will load characters into different arrays
0 commit comments