Skip to content

Commit bd5a8d3

Browse files
committed
v3.0.5 - setStaticPosition - set TMODE to FIXED - resolves #10
1 parent 3444ad3 commit bd5a8d3

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=SparkFun u-blox GNSS v3
2-
version=3.0.4
2+
version=3.0.5
33
author=SparkFun Electronics <[email protected]>
44
maintainer=SparkFun Electronics <sparkfun.com>
55
sentence=Library for I2C, Serial and SPI Communication with u-blox GNSS modules<br/><br/>

src/u-blox_Class_and_ID.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,8 +328,10 @@ const uint8_t UBX_ESF_RESETALG = 0x13;
328328
const uint8_t UBX_ESF_ALG = 0x14;
329329
const uint8_t UBX_ESF_INS = 0x15; // 36 bytes
330330

331+
// CFG-TMODE: Time mode configuration
331332
const uint8_t SVIN_MODE_DISABLE = 0x00;
332-
const uint8_t SVIN_MODE_ENABLE = 0x01;
333+
const uint8_t SVIN_MODE_ENABLE = 0x01; // Survey-In
334+
const uint8_t SVIN_MODE_FIXED = 0x02;
333335

334336
// The following consts are used to configure the various ports and streams for those ports. See -CFG-PRT.
335337
const uint8_t COM_PORT_I2C = 0;

src/u-blox_GNSS.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7286,6 +7286,7 @@ bool DevUBLOXGNSS::setStaticPosition(int32_t ecefXOrLat, int8_t ecefXOrLatHP, in
72867286
unsignedSigned32 converter32;
72877287
unsignedSigned8 converter8;
72887288
bool result = newCfgValset(layer);
7289+
result &= addCfgValset8(UBLOX_CFG_TMODE_MODE, SVIN_MODE_FIXED);
72897290
result &= addCfgValset8(UBLOX_CFG_TMODE_POS_TYPE, (uint8_t)latLong);
72907291
converter32.signed32 = ecefXOrLat;
72917292
result &= addCfgValset32(latLong ? UBLOX_CFG_TMODE_LAT : UBLOX_CFG_TMODE_ECEF_X, converter32.unsigned32);

src/u-blox_config_keys.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ const uint32_t UBLOX_CFG_SPIOUTPROT_RTCM3X = UBX_CFG_L | 0x107a0004; // Flag to
11401140

11411141
// CFG-TMODE: Time mode configuration
11421142
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
1143-
const uint32_t UBLOX_CFG_TMODE_MODE = UBX_CFG_E1 | 0x20030001; // Receiver mode
1143+
const uint32_t UBLOX_CFG_TMODE_MODE = UBX_CFG_E1 | 0x20030001; // Receiver mode: 0-Disabled, 1-Survey-In, 2-Fixed
11441144
const uint32_t UBLOX_CFG_TMODE_POS_TYPE = UBX_CFG_E1 | 0x20030002; // Determines whether the ARP position is given in ECEF or LAT/LON/HEIGHT?
11451145
const uint32_t UBLOX_CFG_TMODE_ECEF_X = UBX_CFG_I4 | 0x40030003; // ECEF X coordinate of the ARP position.
11461146
const uint32_t UBLOX_CFG_TMODE_ECEF_Y = UBX_CFG_I4 | 0x40030004; // ECEF Y coordinate of the ARP position.

0 commit comments

Comments
 (0)