File tree 3 files changed +16
-0
lines changed
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ setOutputPort KEYWORD2
153
153
factoryReset KEYWORD2
154
154
hardReset KEYWORD2
155
155
softwareResetGNSSOnly KEYWORD2
156
+ softwareEnableGNSS KEYWORD2
156
157
factoryDefault KEYWORD2
157
158
158
159
saveConfiguration KEYWORD2
Original file line number Diff line number Diff line change @@ -6446,6 +6446,20 @@ void DevUBLOXGNSS::softwareResetGNSSOnly()
6446
6446
sendCommand(&packetCfg, 0); // don't expect ACK
6447
6447
}
6448
6448
6449
+ void DevUBLOXGNSS::softwareEnableGNSS(bool enable)
6450
+ {
6451
+ // Issue controlled software reset (GNSS only)
6452
+ packetCfg.cls = UBX_CLASS_CFG;
6453
+ packetCfg.id = UBX_CFG_RST;
6454
+ packetCfg.len = 4;
6455
+ packetCfg.startingSpot = 0;
6456
+ payloadCfg[0] = 0; // hot start
6457
+ payloadCfg[1] = 0; // hot start
6458
+ payloadCfg[2] = enable ? 0x09 : 0x08; // 0x09 = start GNSS, 0x08 = stop GNSS
6459
+ payloadCfg[3] = 0; // reserved
6460
+ sendCommand(&packetCfg, 0); // don't expect ACK
6461
+ }
6462
+
6449
6463
// Reset module to factory defaults
6450
6464
// This still works but it is the old way of configuring ublox modules. See getVal and setVal for the new methods
6451
6465
bool DevUBLOXGNSS::factoryDefault(uint16_t maxWait)
Original file line number Diff line number Diff line change @@ -296,6 +296,7 @@ class DevUBLOXGNSS
296
296
void factoryReset (); // Send factory reset sequence (i.e. load "default" configuration and perform hardReset)
297
297
void hardReset (); // Perform a reset leading to a cold start (zero info start-up)
298
298
void softwareResetGNSSOnly (); // Controlled Software Reset (GNSS only) only restarts the GNSS tasks, without reinitializing the full system or reloading any stored configuration.
299
+ void softwareEnableGNSS (bool enable); // Controlled Software Start / Stop (GNSS only)
299
300
bool factoryDefault (uint16_t maxWait = kUBLOXGNSSDefaultMaxWait ); // Reset module to factory defaults
300
301
301
302
// Save configuration to BBR / Flash
You can’t perform that action at this time.
0 commit comments