@@ -96,11 +96,11 @@ const uint8_t UBX_CLASS_SEC = 0x27;
9696const uint8_t UBX_CLASS_HNR = 0x28 ;
9797const uint8_t UBX_CLASS_NMEA = 0xF0 ;
9898
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)
104104const uint8_t UBX_CFG_NAV5 = 0x24 ; // Used to configure the navigation engine including the dynamic model
105105
106106const 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
187187
188188const uint8_t VAL_ID_I2C_ADDRESS = 0x01 ;
189189
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+
190205#ifndef MAX_PAYLOAD_SIZE
191206
192207#define MAX_PAYLOAD_SIZE 128
@@ -372,8 +387,8 @@ class SFE_UBLOX_GPS
372387
373388 boolean powerSaveMode (bool power_save = true , uint16_t maxWait = 2000 );
374389
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 );
377392
378393 // Survey-in specific controls
379394 struct svinStructure
@@ -448,21 +463,6 @@ class SFE_UBLOX_GPS
448463
449464 uint16_t rtcmFrameCounter = 0 ; // Tracks the type of incoming byte inside RTCM frame
450465
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-
466466private:
467467 // Depending on the sentence type the processor will load characters into different arrays
468468 enum SentenceTypes
0 commit comments