@@ -96,11 +96,11 @@ const uint8_t UBX_CLASS_SEC = 0x27;
96
96
const uint8_t UBX_CLASS_HNR = 0x28 ;
97
97
const uint8_t UBX_CLASS_NMEA = 0xF0 ;
98
98
99
- const uint8_t UBX_CFG_PRT = 0x00 ; // Used to configure port specifics
100
- const uint8_t UBX_CFG_RST = 0x04 ; // Used to reset device
101
- const uint8_t UBX_CFG_RATE = 0x08 ; // Used to set port baud rates
102
- const uint8_t UBX_CFG_CFG = 0x09 ; // Used to save current configuration
103
- const uint8_t UBX_CFG_RXM = 0x11 ; // Used to set receiver power management (power save mode)
99
+ const uint8_t UBX_CFG_PRT = 0x00 ; // Used to configure port specifics
100
+ const uint8_t UBX_CFG_RST = 0x04 ; // Used to reset device
101
+ const uint8_t UBX_CFG_RATE = 0x08 ; // Used to set port baud rates
102
+ const uint8_t UBX_CFG_CFG = 0x09 ; // Used to save current configuration
103
+ const uint8_t UBX_CFG_RXM = 0x11 ; // Used to set receiver power management (power save mode)
104
104
const uint8_t UBX_CFG_NAV5 = 0x24 ; // Used to configure the navigation engine including the dynamic model
105
105
106
106
const uint8_t UBX_CFG_VALSET = 0x8A ; // Used for config of higher version Ublox modules (ie protocol v27 and above)
@@ -187,6 +187,21 @@ const uint8_t VAL_GROUP_I2C_SIZE = VAL_SIZE_8; //All fields in I2C group are cur
187
187
188
188
const uint8_t VAL_ID_I2C_ADDRESS = 0x01 ;
189
189
190
+ enum dynModel // Possible values for the dynamic platform model
191
+ {
192
+ DYN_MODEL_PORTABLE = 0 ,
193
+ // 1 is not defined
194
+ DYN_MODEL_STATIONARY = 2 ,
195
+ DYN_MODEL_PEDESTRIAN,
196
+ DYN_MODEL_AUTOMOTIVE,
197
+ DYN_MODEL_SEA,
198
+ DYN_MODEL_AIRBORNE1g,
199
+ DYN_MODEL_AIRBORNE2g,
200
+ DYN_MODEL_AIRBORNE4g,
201
+ DYN_MODEL_WRIST, // Not supported in protocol versions less than 18
202
+ DYN_MODEL_BIKE, // Supported in protocol versions 19.2
203
+ };
204
+
190
205
#ifndef MAX_PAYLOAD_SIZE
191
206
192
207
#define MAX_PAYLOAD_SIZE 128
@@ -372,8 +387,8 @@ class SFE_UBLOX_GPS
372
387
373
388
boolean powerSaveMode (bool power_save = true , uint16_t maxWait = 2000 );
374
389
375
- // Change the dynamic platform model using UBX-CFG-NAV5
376
- boolean setDynamicModel (uint8_t newDynamicModel = PEDESTRIAN , uint16_t maxWait = 2000 );
390
+ // Change the dynamic platform model using UBX-CFG-NAV5
391
+ boolean setDynamicModel (dynModel newDynamicModel = DYN_MODEL_PORTABLE , uint16_t maxWait = 2000 );
377
392
378
393
// Survey-in specific controls
379
394
struct svinStructure
@@ -448,21 +463,6 @@ class SFE_UBLOX_GPS
448
463
449
464
uint16_t rtcmFrameCounter = 0 ; // Tracks the type of incoming byte inside RTCM frame
450
465
451
- enum dynModel // Possible values for the dynamic platform model
452
- {
453
- PORTABLE = 0 ,
454
- // 1 is not defined
455
- STATIONARY = 2 ,
456
- PEDESTRIAN,
457
- AUTOMOTIVE,
458
- SEA,
459
- AIRBORNE1g,
460
- AIRBORNE2g,
461
- AIRBORNE4g,
462
- WRIST, // Not supported in protocol versions less than 18
463
- BIKE // Supported in protocol versions 19.2
464
- };
465
-
466
466
private:
467
467
// Depending on the sentence type the processor will load characters into different arrays
468
468
enum SentenceTypes
0 commit comments