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

Commit 30bff51

Browse files
authored
Merge branch 'release_candidate' into Expand-getVal-setVal
2 parents 0fb2fcf + 7114584 commit 30bff51

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name=SparkFun Ublox Arduino Library
1+
name=SparkFun u-blox Arduino Library
22
version=1.8.6
33
author=SparkFun Electronics <[email protected]>
44
maintainer=SparkFun Electronics <sparkfun.com>
5-
sentence=Library for I2C and Serial Communication with Ublox modules
6-
paragraph=An Arduino Library to enable both I2C and Serial communication for both NMEA reception and binary UBX sending to the module. Useful for interfacing to the <a href="https://www.sparkfun.com/products/15136">SparkFun GPS-RTK2</a> ZED-F9P, <a href="https://www.sparkfun.com/products/14980">SparkFun GPS-RTK</a> NEO-M8P-2, the <a href="https://www.sparkfun.com/products/15210">SparkFun SAM-M8Q</a>, and the <a href="https://www.sparkfun.com/products/15193">SparkFun ZEO-M8Q</a>. Library also works with other Ublox based boards. <br><br>The ZED-F9P and NEO-M8P-2 modules are top-of-the-line modules for high accuracy GNSS and GPS location solutions including RTK. The ZED-F9P is unique in that it is capable of both rover and base station operations allowing the module to become a base station and produce RTCM 3.x correction data.
5+
sentence=Library for I2C and Serial Communication with u-blox modules
6+
paragraph=An Arduino Library to enable both I2C and Serial communication for both NMEA reception and binary UBX sending to u-blox modules. Useful for interfacing to the <a href="https://www.sparkfun.com/products/15136">SparkFun GPS-RTK2</a> ZED-F9P, <a href="https://www.sparkfun.com/products/14980">SparkFun GPS-RTK</a> NEO-M8P-2, the <a href="https://www.sparkfun.com/products/15210">SparkFun SAM-M8Q</a>, and the <a href="https://www.sparkfun.com/products/15193">SparkFun ZEO-M8Q</a>. Library also works with other u-lox based boards. <br><br>The ZED-F9P and NEO-M8P-2 modules are top-of-the-line modules for high accuracy GNSS and GPS location solutions including RTK. The ZED-F9P is unique in that it is capable of both rover and base station operations allowing the module to become a base station and produce RTCM 3.x correction data.
77
category=Sensors
88
url=https://github.com/sparkfun/SparkFun_Ublox_Arduino_Library
99
architectures=*

src/SparkFun_Ublox_Arduino_Library.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
This is a library written for the Ublox ZED-F9P and NEO-M8P-2
2+
This is a library written for the u-blox ZED-F9P and NEO-M8P-2
33
SparkFun sells these at its website: www.sparkfun.com
44
Do you like this library? Help support SparkFun. Buy a board!
55
https://www.sparkfun.com/products/16481
@@ -12,7 +12,7 @@
1212
Written by Nathan Seidle @ SparkFun Electronics, September 6th, 2018
1313
1414
This library handles configuring and handling the responses
15-
from a Ublox GPS module. Works with most modules from Ublox including
15+
from a u-blox GPS module. Works with most modules from u-blox including
1616
the Zed-F9P, NEO-M8P-2, NEO-M9N, ZOE-M8Q, SAM-M8Q, and many others.
1717
1818
https://github.com/sparkfun/SparkFun_Ublox_Arduino_Library
@@ -240,7 +240,7 @@ void SFE_UBLOX_GPS::hardReset()
240240
sendCommand(&packetCfg, 0); // don't expect ACK
241241
}
242242

243-
//Changes the serial baud rate of the Ublox module, can't return success/fail 'cause ACK from modem
243+
//Changes the serial baud rate of the u-blox module, can't return success/fail 'cause ACK from modem
244244
//is lost due to baud rate change
245245
void SFE_UBLOX_GPS::setSerialRate(uint32_t baudrate, uint8_t uartPort, uint16_t maxWait)
246246
{
@@ -278,7 +278,7 @@ void SFE_UBLOX_GPS::setSerialRate(uint32_t baudrate, uint8_t uartPort, uint16_t
278278
}
279279
}
280280

281-
//Changes the I2C address that the Ublox module responds to
281+
//Changes the I2C address that the u-blox module responds to
282282
//0x42 is the default but can be changed with this command
283283
boolean SFE_UBLOX_GPS::setI2CAddress(uint8_t deviceAddress, uint16_t maxWait)
284284
{
@@ -344,10 +344,10 @@ boolean SFE_UBLOX_GPS::checkUbloxI2C(ubxPacket *incomingUBX, uint8_t requestedCl
344344
uint8_t lsb = _i2cPort->read();
345345
if (lsb == 0xFF)
346346
{
347-
//I believe this is a Ublox bug. Device should never present an 0xFF.
347+
//I believe this is a u-blox bug. Device should never present an 0xFF.
348348
if ((_printDebug == true) || (_printLimitedDebug == true)) // Print this if doing limited debugging
349349
{
350-
_debugSerial->println(F("checkUbloxI2C: Ublox bug, length lsb is 0xFF"));
350+
_debugSerial->println(F("checkUbloxI2C: u-blox bug, length lsb is 0xFF"));
351351
}
352352
if (checksumFailurePin >= 0)
353353
{
@@ -440,7 +440,7 @@ boolean SFE_UBLOX_GPS::checkUbloxI2C(ubxPacket *incomingUBX, uint8_t requestedCl
440440
{
441441
if ((_printDebug == true) || (_printLimitedDebug == true)) // Print this if doing limited debugging
442442
{
443-
_debugSerial->println(F("checkUbloxU2C: Ublox error, module not ready with data"));
443+
_debugSerial->println(F("checkUbloxU2C: u-blox error, module not ready with data"));
444444
}
445445
delay(5); //In logic analyzation, the module starting responding after 1.48ms
446446
if (checksumFailurePin >= 0)
@@ -1863,7 +1863,7 @@ uint8_t SFE_UBLOX_GPS::setVal32(uint32_t key, uint32_t value, uint8_t layer, uin
18631863
//Start defining a new UBX-CFG-VALSET ubxPacket
18641864
//This function takes a full 32-bit key and 32-bit value
18651865
//Default layer is BBR
1866-
//Configuration of modern Ublox modules is now done via getVal/setVal/delVal, ie protocol v27 and above found on ZED-F9P
1866+
//Configuration of modern u-blox modules is now done via getVal/setVal/delVal, ie protocol v27 and above found on ZED-F9P
18671867
uint8_t SFE_UBLOX_GPS::newCfgValset32(uint32_t key, uint32_t value, uint8_t layer)
18681868
{
18691869
packetCfg.cls = UBX_CLASS_CFG;
@@ -1897,7 +1897,7 @@ uint8_t SFE_UBLOX_GPS::newCfgValset32(uint32_t key, uint32_t value, uint8_t laye
18971897
//Start defining a new UBX-CFG-VALSET ubxPacket
18981898
//This function takes a full 32-bit key and 16-bit value
18991899
//Default layer is BBR
1900-
//Configuration of modern Ublox modules is now done via getVal/setVal/delVal, ie protocol v27 and above found on ZED-F9P
1900+
//Configuration of modern u-blox modules is now done via getVal/setVal/delVal, ie protocol v27 and above found on ZED-F9P
19011901
uint8_t SFE_UBLOX_GPS::newCfgValset16(uint32_t key, uint16_t value, uint8_t layer)
19021902
{
19031903
packetCfg.cls = UBX_CLASS_CFG;
@@ -1929,7 +1929,7 @@ uint8_t SFE_UBLOX_GPS::newCfgValset16(uint32_t key, uint16_t value, uint8_t laye
19291929
//Start defining a new UBX-CFG-VALSET ubxPacket
19301930
//This function takes a full 32-bit key and 8-bit value
19311931
//Default layer is BBR
1932-
//Configuration of modern Ublox modules is now done via getVal/setVal/delVal, ie protocol v27 and above found on ZED-F9P
1932+
//Configuration of modern u-blox modules is now done via getVal/setVal/delVal, ie protocol v27 and above found on ZED-F9P
19331933
uint8_t SFE_UBLOX_GPS::newCfgValset8(uint32_t key, uint8_t value, uint8_t layer)
19341934
{
19351935
packetCfg.cls = UBX_CLASS_CFG;
@@ -3221,7 +3221,7 @@ uint16_t SFE_UBLOX_GPS::getPDOP(uint16_t maxWait)
32213221
return (pDOP);
32223222
}
32233223

3224-
//Get the current protocol version of the Ublox module we're communicating with
3224+
//Get the current protocol version of the u-blox module we're communicating with
32253225
//This is helpful when deciding if we should call the high-precision Lat/Long (HPPOSLLH) or the regular (POSLLH)
32263226
uint8_t SFE_UBLOX_GPS::getProtocolVersionHigh(uint16_t maxWait)
32273227
{
@@ -3230,7 +3230,7 @@ uint8_t SFE_UBLOX_GPS::getProtocolVersionHigh(uint16_t maxWait)
32303230
return (versionHigh);
32313231
}
32323232

3233-
//Get the current protocol version of the Ublox module we're communicating with
3233+
//Get the current protocol version of the u-blox module we're communicating with
32343234
//This is helpful when deciding if we should call the high-precision Lat/Long (HPPOSLLH) or the regular (POSLLH)
32353235
uint8_t SFE_UBLOX_GPS::getProtocolVersionLow(uint16_t maxWait)
32363236
{
@@ -3239,7 +3239,7 @@ uint8_t SFE_UBLOX_GPS::getProtocolVersionLow(uint16_t maxWait)
32393239
return (versionLow);
32403240
}
32413241

3242-
//Get the current protocol version of the Ublox module we're communicating with
3242+
//Get the current protocol version of the u-blox module we're communicating with
32433243
//This is helpful when deciding if we should call the high-precision Lat/Long (HPPOSLLH) or the regular (POSLLH)
32443244
boolean SFE_UBLOX_GPS::getProtocolVersion(uint16_t maxWait)
32453245
{

src/SparkFun_Ublox_Arduino_Library.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
This is a library written for the Ublox ZED-F9P and NEO-M8P-2
2+
This is a library written for the u-blox ZED-F9P and NEO-M8P-2
33
SparkFun sells these at its website: www.sparkfun.com
44
Do you like this library? Help support SparkFun. Buy a board!
55
https://www.sparkfun.com/products/16481
@@ -12,7 +12,7 @@
1212
Written by Nathan Seidle @ SparkFun Electronics, September 6th, 2018
1313
1414
This library handles configuring and handling the responses
15-
from a Ublox GPS module. Works with most modules from Ublox including
15+
from a u-blox GPS module. Works with most modules from u-blox including
1616
the Zed-F9P, NEO-M8P-2, NEO-M9N, ZOE-M8Q, SAM-M8Q, and many others.
1717
1818
https://github.com/sparkfun/SparkFun_Ublox_Arduino_Library
@@ -157,9 +157,9 @@ const uint8_t UBX_CFG_SBAS = 0x16; //SBAS configuration
157157
const uint8_t UBX_CFG_TMODE3 = 0x71; //Time Mode Settings 3. Used to enable Survey In Mode
158158
const uint8_t UBX_CFG_TP5 = 0x31; //Time Pulse Parameters
159159
const uint8_t UBX_CFG_USB = 0x1B; //USB Configuration
160-
const uint8_t UBX_CFG_VALDEL = 0x8C; //Used for config of higher version Ublox modules (ie protocol v27 and above). Deletes values corresponding to provided keys/ provided keys with a transaction
161-
const uint8_t UBX_CFG_VALGET = 0x8B; //Used for config of higher version Ublox modules (ie protocol v27 and above). Configuration Items
162-
const uint8_t UBX_CFG_VALSET = 0x8A; //Used for config of higher version Ublox modules (ie protocol v27 and above). Sets values corresponding to provided key-value pairs/ provided key-value pairs within a transaction.
160+
const uint8_t UBX_CFG_VALDEL = 0x8C; //Used for config of higher version u-blox modules (ie protocol v27 and above). Deletes values corresponding to provided keys/ provided keys with a transaction
161+
const uint8_t UBX_CFG_VALGET = 0x8B; //Used for config of higher version u-blox modules (ie protocol v27 and above). Configuration Items
162+
const uint8_t UBX_CFG_VALSET = 0x8A; //Used for config of higher version u-blox modules (ie protocol v27 and above). Sets values corresponding to provided key-value pairs/ provided key-value pairs within a transaction.
163163

164164
//The following are used to enable NMEA messages. Descriptions come from the NMEA messages overview in the ZED-F9P Interface Description
165165
const uint8_t UBX_NMEA_MSB = 0xF0; //All NMEA enable commands have 0xF0 as MSB
@@ -471,8 +471,8 @@ class SFE_UBLOX_GPS
471471
void factoryReset(); //Send factory reset sequence (i.e. load "default" configuration and perform hardReset)
472472
void hardReset(); //Perform a reset leading to a cold start (zero info start-up)
473473

474-
boolean setI2CAddress(uint8_t deviceAddress, uint16_t maxTime = 250); //Changes the I2C address of the Ublox module
475-
void setSerialRate(uint32_t baudrate, uint8_t uartPort = COM_PORT_UART1, uint16_t maxTime = defaultMaxWait); //Changes the serial baud rate of the Ublox module, uartPort should be COM_PORT_UART1/2
474+
boolean setI2CAddress(uint8_t deviceAddress, uint16_t maxTime = 250); //Changes the I2C address of the u-blox module
475+
void setSerialRate(uint32_t baudrate, uint8_t uartPort = COM_PORT_UART1, uint16_t maxTime = defaultMaxWait); //Changes the serial baud rate of the u-blox module, uartPort should be COM_PORT_UART1/2
476476
void setNMEAOutputPort(Stream &nmeaOutputPort); //Sets the internal variable for the port to direct NMEA characters to
477477

478478
boolean setNavigationFrequency(uint8_t navFreq, uint16_t maxWait = defaultMaxWait); //Set the number of nav solutions sent per second

0 commit comments

Comments
 (0)