501 else if (gnssId == 1)
505 else if (gnssId == 2)
514 else if (gnssId == 3)
525 else if (gnssId == 5)
534 else if (gnssId == 6)
539 else if (gnssId == 7)
548 return os << fmt::format(
"{}", obj);
std::ostream & operator<<(std::ostream &os, const NAV::vendor::ublox::UbxClass &obj)
Stream insertion operator overload.
Type Definitions for Ublox messages.
Enumerate for GNSS Codes.
@ B7I
BeiDou B2b (BDS-2) - B2I(OS)
@ J2L
QZSS L2 - L2C-code (long)
@ B5P
BeiDou B2a - Pilot(P)
@ J1S
QZSS L1 - L1C (data)
@ B1P
BeiDou B1 - Pilot(P)
@ B1D
BeiDou B1 - Data (D)
@ G2L
GPS L2 - L2C(L) (long)
@ I5A
IRNSS L5 - SPS Signal.
@ B5D
BeiDou B2a - Data (D)
@ B7X
BeiDou B2b (BDS-2) - B2I(OS), B2Q, combined.
@ E1X
GAL E1 - OS(B+C) (combined)
@ B2I
BeiDou B1-2 - B1I(OS)
@ B2X
BeiDou B1-2 - B1I(OS), B1Q, combined.
@ J2S
QZSS L2 - L2C-code (medium)
@ UBX_MGA_FLASH_STOP
Finish flashing MGA-ANO data (Length = 2; Type = Input)
@ UBX_MGA_INI_TIME_GNSS
Initial Time Assistance (Length = 24; Type = Input)
@ UBX_MGA_GPS_ALM
GPS Almanac Assistance (Length = 36; Type = Input)
@ UBX_MGA_GAL_EPH
Galileo Ephemeris Assistance (Length = 76; Type = Input)
@ UBX_MGA_QZSS_HEALTH
QZSS Health Assistance (Length = 12; Type = Input)
@ UBX_MGA_QZSS_EPH
QZSS Ephemeris Assistance (Length = 68; Type = Input)
@ UBX_MGA_INI_CLKD
Initial Clock Drift Assistance (Length = 12; Type = Input)
@ UBX_MGA_ACK_DATA0
Multiple GNSS Acknowledge message (Length = 8; Type = Output)
@ UBX_MGA_INI_POS_LLH
Initial Position Assistance (Length = 20; Type = Input)
@ UBX_MGA_BDS_ALM
BDS Almanac Assistance (Length = 40; Type = Input)
@ UBX_MGA_GPS_UTC
GPS UTC Assistance (Length = 20; Type = Input)
@ UBX_MGA_GLO_EPH
GLONASS Ephemeris Assistance (Length = 48; Type = Input)
@ UBX_MGA_ANO
Multiple GNSS AssistNow Offline Assistance (Length = 76; Type = Input)
@ UBX_MGA_BDS_EPH
BDS Ephemeris Assistance (Length = 88; Type = Input)
@ UBX_MGA_GLO_ALM
GLONASS Almanac Assistance (Length = 36; Type = Input)
@ UBX_MGA_INI_FREQ
Initial Frequency Assistance (Length = 12; Type = Input)
@ UBX_MGA_INI_TIME_UTC
Initial Time Assistance (Length = 24; Type = Input)
@ UBX_MGA_GPS_HEALTH
GPS Health Assistance (Length = 40; Type = Input)
@ UBX_MGA_INI_EOP
Earth Orientation Parameters Assistance (Length = 72; Type = Input)
@ UBX_MGA_FLASH_ACK
Acknowledge last FLASH-DATA or -STOP (Length = 6; Type = Output)
@ UBX_MGA_FLASH_DATA
Transfer MGA-ANO data block to flash (Length = 6 + 1*size; Type = Input)
@ UBX_MGA_BDS_IONO
BDS Ionospheric Assistance (Length = 16; Type = Input)
@ UBX_MGA_BDS_UTC
BDS UTC Assistance (Length = 20; Type = Input)
@ UBX_MGA_GPS_IONO
GPS Ionosphere Assistance (Length = 16; Type = Input)
@ UBX_MGA_INI_POS_XYZ
Initial Position Assistance (Length = 20; Type = Input)
@ UBX_MGA_GAL_ALM
Galileo Almanac Assistance (Length = 32; Type = Input)
@ UBX_MGA_GAL_UTC
Galileo UTC Assistance (Length = 20; Type = Input)
@ UBX_MGA_GAL_TIMEOFFSET
Galileo GPS time offset assistance (Length = 12; Type = Input)
@ UBX_MGA_QZSS_ALM
QZSS Almanac Assistance (Length = 36; Type = Input)
@ UBX_MGA_BDS_HEALTH
BDS Health Assistance (Length = 68; Type = Input)
@ UBX_MGA_GPS_EPH
GPS Ephemeris Assistance (Length = 68; Type = Input)
@ UBX_MGA_GLO_TIMEOFFSET
GLONASS Auxiliary Time Offset Assistance (Length = 20; Type = Input)
@ UBX_TIM_TP
Time Pulse Timedata (Length = 16; Type = Periodic/Polled)
@ UBX_TIM_VRFY
Sourced Time Verification (Length = 20; Type = Periodic/Polled)
@ UBX_TIM_SVIN
Survey-in data (Length = 28; Type = Periodic/Polled)
@ UBX_TIM_TM2
Time mark data (Length = 28; Type = Periodic/Polled)
@ UBX_TIM_FCHG
Oscillator frequency changed notification (Length = 32; Type = Periodic/Polled)
@ UBX_TIM_TOS
Time Pulse Time and Frequency Data (Length = 56; Type = Periodic)
@ UBX_TIM_HOC
Host oscillator control (Length = 8; Type = Input)
@ UBX_TIM_SMEAS
Source measurement (Length = 12 + 24*numMeas; Type = Input/Output)
std::string getStringFromMsgId(UbxClass msgClass, uint8_t msgId)
Get the a string from a UBX Msg Id.
@ UBX_CFG_TMODE3
Time Mode Settings 3 (Length = 40; Type = Get/Set)
@ UBX_CFG_RATE
Navigation/Measurement Rate Settings (Length = 6; Type = Get/Set)
@ UBX_CFG_CFG
Clear, Save and Load configurations (Length = (12) or (13); Type = Command)
@ UBX_CFG_DGNSS
DGNSS configuration (Length = 4; Type = Get/Set)
@ UBX_CFG_GEOFENCE
Geofencing configuration (Length = 8 + 12*numFences; Type = Get/Set)
@ UBX_CFG_TMODE2
Time Mode Settings 2 (Length = 28; Type = Get/Set)
@ UBX_CFG_ANT
Antenna Control Settings (Length = 4; Type = Get/Set)
@ UBX_CFG_ODO
Odometer, Low-speed COG Engine Settings (Length = 20; Type = Get/Set)
@ UBX_CFG_ITFM
Jamming/Interference Monitor configuration (Length = 8; Type = Get/Set)
@ UBX_CFG_SLAS
SLAS Configuration (Length = 4; Type = Get/Set)
@ UBX_CFG_ESRC
External synchronization source configuration (Length = 4 + 36*numSources; Type = Get/Set)
@ UBX_CFG_GNSS
GNSS system configuration (Length = 4 + 8*numConfigBlocks; Type = Get/Set)
@ UBX_CFG_LOGFILTER
Data Logger Configuration (Length = 12; Type = Get/Set)
@ UBX_CFG_PWR
Put receiver in a defined power state (Length = 8; Type = Set)
@ UBX_CFG_BATCH
Get/Set data batching configuration (Length = 8; Type = Get/Set)
@ UBX_CFG_RINV
Contents of Remote Inventory (Length = 1 + 1*N; Type = Get/Set)
@ UBX_CFG_DOSC
Disciplined oscillator configuration (Length = 4 + 32*numOsc; Type = Get/Set)
@ UBX_CFG_SBAS
SBAS Configuration (Length = 8; Type = Get/Set)
@ UBX_CFG_HNR
High Navigation Rate Settings (Length = 4; Type = Get/Set)
@ UBX_CFG_RST
Reset Receiver / Clear Backup Data Structures (Length = 4; Type = Command)
@ UBX_CFG_PMS
Power Mode Setup (Length = 8; Type = Get/Set)
@ UBX_CFG_USB
USB Configuration (Length = 108; Type = Get/Set)
@ UBX_CFG_NAV5
Navigation Engine Settings (Length = 36; Type = Get/Set)
@ UBX_CFG_TXSLOT
TX buffer time slots configuration (Length = 16; Type = Set)
@ UBX_CFG_SMGR
Synchronization manager configuration (Length = 20; Type = Get/Set)
Code getCode(uint8_t gnssId, uint8_t sigId)
Get the GNSS code from gnssId and sigId.
@ UBX_ACK_ACK
Message Acknowledged (Length = 2; Type = Output)
@ UBX_ACK_NAK
Message Not-Acknowledged (Length = 2; Type = Output)
@ UBX_LOG_RETRIEVEPOS
Position fix log entry (Length = 40; Type = Output)
@ UBX_LOG_ERASE
Erase Logged Data (Length = 0; Type = Command)
@ UBX_LOG_BATCH
Batched data (Length = 100; Type = Polled)
@ UBX_LOG_RETRIEVE
Request log data (Length = 12; Type = Command)
@ UBX_LOG_RETRIEVESTRING
Byte string log entry (Length = 16 + 1*byteCount; Type = )
@ UBX_LOG_RETRIEVEPOSEXTRA
Odometer log entry (Length = 32; Type = Output)
@ UBX_LOG_STRING
Store arbitrary string in on-board flash (Length = 0 + 1*N; Type = Command)
@ UBX_LOG_RETRIEVEBATCH
Request batch data (Length = 4; Type = Command)
@ UBX_LOG_CREATE
Create Log File (Length = 8; Type = Command)
@ UBX_INF_ERROR
ASCII output with error contents (Length = 0 + 1*N; Type = Output)
@ UBX_INF_TEST
ASCII output with test contents (Length = 0 + 1*N; Type = Output)
@ UBX_INF_NOTICE
ASCII output with informational contents (Length = 0 + 1*N; Type = Output)
@ UBX_INF_DEBUG
ASCII output with debug contents (Length = 0 + 1*N; Type = Output)
@ UBX_INF_WARNING
ASCII output with warning contents (Length = 0 + 1*N; Type = Output)
UbxClass getMsgClassFromString(const std::string &className)
Get the UBX Msg Class From String object.
SatelliteSystem getSatSys(uint8_t gnssId)
Get the GNSS Satellite System from gnssId.
uint8_t getMsgIdFromString(UbxClass msgClass, const std::string &idName)
Get the UBX Msg Id From String object.
@ UBX_ESF_INS
Vehicle dynamics information (Length = 36; Type = Periodic/Polled)
@ UBX_ESF_RAW
Raw sensor measurements (Length = 4 + 8*N; Type = Output)
@ UBX_ESF_STATUS
External Sensor Fusion (ESF) status information (Length = 16 + 4*numSens; Type = Periodic/Polled)
@ UBX_ESF_MEAS
External Sensor Fusion Measurements (Length = (8 + 4*numMeas) or (12 + 4*numMeas); Type = Input/Outpu...
UbxClass
The available UBX Class IDs.
@ UBX_CLASS_NAV
Navigation Results Messages: Position, Speed, Time, Acceleration, Heading, DOP, SVs used.
@ UBX_CLASS_TIM
Timing Messages: Time Pulse Output, Time Mark Results.
@ UBX_CLASS_NONE
No Message Class specified.
@ UBX_CLASS_INF
Information Messages: Printf-Style Messages, with IDs such as Error, Warning, Notice.
@ UBX_CLASS_HNR
High Rate Navigation Results Messages: High rate time, position, speed, heading.
@ UBX_CLASS_SEC
Security Feature Messages.
@ UBX_CLASS_MON
Monitoring Messages: Communication Status, CPU Load, Stack Usage, Task Status.
@ UBX_CLASS_MGA
Multiple GNSS Assistance Messages: Assistance data for various GNSS.
@ UBX_CLASS_RXM
Receiver Manager Messages: Satellite Status, RTC Status.
@ UBX_CLASS_ESF
External Sensor Fusion Messages: External Sensor Measurements and Status Information.
@ UBX_CLASS_LOG
Logging Messages: Log creation, deletion, info and retrieval.
@ UBX_CLASS_UPD
Firmware Update Messages: Memory/Flash erase/write, Reboot, Flash identification, etc.
@ UBX_CLASS_CFG
Configuration Input Messages: Configure the receiver.
@ UBX_CLASS_ACK
Ack/Nak Messages: Acknowledge or Reject messages to UBX-CFG input messages.
@ UBX_RXM_IMES
Indoor Messaging System Information (Length = 4 + 44*numTx; Type = Periodic/Polled)
@ UBX_RXM_SVSI
SV Status Info (Length = 8 + 6*numSV; Type = Periodic/Polled)
@ UBX_RXM_RTCM
RTCM input status (Length = 8; Type = Output)
std::string getStringFromMsgClass(UbxClass msgClass)
Get the a string from a UBX Msg Class.
@ UBX_HNR_INS
Vehicle dynamics information (Length = 36; Type = Periodic/Polled)
@ UBX_HNR_PVT
High Rate Output of PVT Solution (Length = 72; Type = Periodic/Polled)
@ UBX_SEC_UNIQID
Unique Chip ID (Length = 9; Type = Output)
@ UBX_NAV_VELNED
Velocity Solution in NED (Length = 36; Type = Periodic/Polled)
@ UBX_NAV_ATT
Attitude Solution (Length = 32; Type = Periodic/Polled)
@ UBX_NAV_RESETODO
Reset odometer (Length = 0; Type = Command)
@ UBX_NAV_SAT
Satellite Information (Length = 8 + 12*numSvs; Type = Periodic/Polled)
@ UBX_NAV_TIMEGLO
GLO Time Solution (Length = 20; Type = Periodic/Polled)
@ UBX_NAV_DOP
Dilution of precision (Length = 18; Type = Periodic/Polled)
@ UBX_NAV_POSECEF
Position Solution in ECEF (Length = 20; Type = Periodic/Polled)
@ UBX_NAV_TIMEUTC
UTC Time Solution (Length = 20; Type = Periodic/Polled)
@ UBX_NAV_GEOFENCE
Geofencing status (Length = 8 + 2*numFences; Type = Periodic/Polled)
@ UBX_NAV_AOPSTATUS
AssistNow Autonomous Status (Length = 16; Type = Periodic/Polled)
@ UBX_NAV_PVT
Navigation Position Velocity Time Solution (Length = 92; Type = Periodic/Polled)
@ UBX_NAV_ODO
Odometer Solution (Length = 20; Type = Periodic/Polled)
@ UBX_NAV_EOE
End Of Epoch (Length = 4; Type = Periodic)
@ UBX_NAV_HPPOSLLH
High Precision Geodetic Position Solution (Length = 36; Type = Periodic/Polled)
@ UBX_NAV_DGPS
DGPS Data Used for NAV (Length = 16 + 12*numCh; Type = Periodic/Polled)
@ UBX_NAV_CLOCK
Clock Solution (Length = 20; Type = Periodic/Polled)
@ UBX_NAV_RELPOSNED
Relative Positioning Information in NED frame (Length = 40; Type = Periodic/Polled)
@ UBX_NAV_SVIN
Survey-in data (Length = 40; Type = Periodic/Polled)
@ UBX_NAV_SBAS
SBAS Status Data (Length = 12 + 12*cnt; Type = Periodic/Polled)
@ UBX_NAV_VELECEF
Velocity Solution in ECEF (Length = 20; Type = Periodic/Polled)
@ UBX_NAV_TIMEGPS
GPS Time Solution (Length = 16; Type = Periodic/Polled)
@ UBX_NAV_TIMELS
Leap second event information (Length = 24; Type = Periodic/Polled)
@ UBX_NAV_TIMEGAL
Galileo Time Solution (Length = 20; Type = Periodic/Polled)
@ UBX_NAV_SVINFO
Space Vehicle Information (Length = 8 + 12*numCh; Type = Periodic/Polled)
@ UBX_NAV_SOL
Navigation Solution Information (Length = 52; Type = Periodic/Polled)
@ UBX_NAV_SLAS
QZSS L1S SLAS Status Data (Length = 20 + 8*cnt; Type = Periodic/Polled)
@ UBX_NAV_HPPOSECEF
High Precision Position Solution in ECEF (Length = 28; Type = Periodic/Polled)
@ UBX_NAV_ORB
GNSS Orbit Database Info (Length = 8 + 6*numSv; Type = Periodic/Polled)
@ UBX_NAV_POSLLH
Geodetic Position Solution (Length = 28; Type = Periodic/Polled)
@ UBX_NAV_TIMEBDS
BDS Time Solution (Length = 20; Type = Periodic/Polled)
@ UBX_NAV_STATUS
Receiver Navigation Status (Length = 16; Type = Periodic/Polled)
@ UBX_MON_TXBUFF
Transmitter Buffer Status (Length = 28; Type = Periodic/Polled)
@ UBX_MON_GNSS
Information message major GNSS selection (Length = 8; Type = Polled)
@ UBX_MON_RXBUFF
Receiver Buffer Status (Length = 24; Type = Periodic/Polled)
@ UBX_MON_HW2
Extended Hardware Status (Length = 28; Type = Periodic/Polled)
@ UBX_MON_RXR
Receiver Status Information (Length = 1; Type = Output)
@ UBX_MON_HW
Hardware Status (Length = 60; Type = Periodic/Polled)
@ UBX_MON_MSGPP
Message Parse and Process Status (Length = 120; Type = Periodic/Polled)
@ UBX_MON_IO
I/O Subsystem Status (Length = 0 + 20*N; Type = Periodic/Polled)
@ UBX_MON_SMGR
Synchronization Manager Status (Length = 16; Type = Periodic/Polled)
@ UBX_MON_BATCH
Data batching buffer status (Length = 12; Type = Polled)
@ GPS
Global Positioning System.
@ QZSS
Quasi-Zenith Satellite System.
@ GLO
Globalnaja nawigazionnaja sputnikowaja sistema (GLONASS)
@ SBAS
Satellite Based Augmentation System.
@ SatSys_None
No Satellite system.
@ IRNSS
Indian Regional Navigation Satellite System.