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

Commit f6ca7b2

Browse files
committed
cleanups (unrelated changes & coding style)
1 parent 8568540 commit f6ca7b2

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

src/SparkFun_Ublox_Arduino_Library.cpp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,8 @@ boolean SFE_UBLOX_GPS::setAutoPVT(boolean enable, boolean implicitUpdate, uint16
12071207
payloadCfg[2] = enable ? 1 : 0; // rate relative to navigation freq.
12081208

12091209
bool ok = sendCommand(packetCfg, maxWait);
1210-
if (ok){
1210+
if (ok)
1211+
{
12111212
autoPVT = enable;
12121213
autoPVTImplicitUpdate = implicitUpdate;
12131214
}
@@ -1344,22 +1345,6 @@ uint32_t SFE_UBLOX_GPS::getPositionAccuracy(uint16_t maxWait)
13441345
return (tempAccuracy);
13451346
}
13461347

1347-
//Get the current 3D high precision positional accuracy - a fun thing to watch
1348-
//Returns a long representing the 3D accuracy in cm
1349-
uint32_t SFE_UBLOX_GPS::getPositionAccuracyNormal(uint16_t maxWait)
1350-
{
1351-
packetCfg.cls = UBX_CLASS_NAV;
1352-
packetCfg.id = UBX_NAV_POSECEF;
1353-
packetCfg.len = 0;
1354-
packetCfg.startingSpot = 0;
1355-
1356-
if (sendCommand(packetCfg, maxWait) == false)
1357-
return (0); //If command send fails then bail
1358-
1359-
uint32_t tempAccuracy = extractLong(16); //We got a response, now extract a long beginning at a given position
1360-
1361-
return (tempAccuracy);
1362-
}
13631348
//Get the current latitude in degrees
13641349
//Returns a long representing the number of degrees *10^-7
13651350
int32_t SFE_UBLOX_GPS::getLatitude(uint16_t maxWait)

src/SparkFun_Ublox_Arduino_Library.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ const uint8_t UBX_NAV_HPPOSECEF = 0x13; //Find our positional accuracy (high pre
104104
const uint8_t UBX_NAV_HPPOSLLH = 0x14; //Used for obtaining lat/long/alt in high precision
105105
const uint8_t UBX_NAV_SVIN = 0x3B; //Used for checking Survey In status
106106
const uint8_t UBX_NAV_RELPOSNED = 0x3C; //Relative Positioning Information in NED frame
107-
const uint8_t UBX_NAV_POSECEF = 0x01;
108107

109108
const uint8_t UBX_MON_VER = 0x04; //Used for obtaining Protocol Version
110109
const uint8_t UBX_MON_TXBUF = 0x08; //Used for query tx buffer size/state
@@ -275,7 +274,6 @@ class SFE_UBLOX_GPS
275274
boolean disableRTCMmessage(uint8_t messageNumber, uint8_t portID, uint16_t maxWait = 250); //Turn off given RTCM message from a given port
276275

277276
uint32_t getPositionAccuracy(uint16_t maxWait = 500); //Returns the 3D accuracy of the current high-precision fix, in mm. Supported on NEO-M8P, ZED-F9P,
278-
uint32_t getPositionAccuracyNormal(uint16_t maxWait = 500);
279277

280278
uint8_t getProtocolVersionHigh(uint16_t maxWait = 1000); //Returns the PROTVER XX.00 from UBX-MON-VER register
281279
uint8_t getProtocolVersionLow(uint16_t maxWait = 1000); //Returns the PROTVER 00.XX from UBX-MON-VER register

0 commit comments

Comments
 (0)