Skip to content

Commit

Permalink
ubx: Disable UBX_MSG_NAV_TIMEGPS when encountered
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasDebrunner authored and bkueng committed Jun 12, 2023
1 parent d8fa4ff commit 1f850de
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ubx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,10 @@ GPSDriverUBX::payloadRxInit()
case UBX_MSG_RXM_SFRBX:
key_id = UBX_CFG_KEY_MSGOUT_UBX_RXM_SFRBX_I2C;
break;

case UBX_MSG_NAV_TIMEGPS:
key_id = UBX_CFG_KEY_MSGOUT_UBX_NAV_TIMEGPS_I2C;
break;
}

if (key_id != 0) {
Expand Down
3 changes: 3 additions & 0 deletions src/ubx.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
#define UBX_ID_NAV_SOL 0x06
#define UBX_ID_NAV_PVT 0x07
#define UBX_ID_NAV_VELNED 0x12
#define UBX_ID_NAV_TIMEGPS 0x20
#define UBX_ID_NAV_TIMEUTC 0x21
#define UBX_ID_NAV_SVINFO 0x30
#define UBX_ID_NAV_SAT 0x35
Expand Down Expand Up @@ -136,6 +137,7 @@
#define UBX_MSG_NAV_PVT ((UBX_CLASS_NAV) | UBX_ID_NAV_PVT << 8)
#define UBX_MSG_NAV_VELNED ((UBX_CLASS_NAV) | UBX_ID_NAV_VELNED << 8)
#define UBX_MSG_NAV_TIMEUTC ((UBX_CLASS_NAV) | UBX_ID_NAV_TIMEUTC << 8)
#define UBX_MSG_NAV_TIMEGPS ((UBX_CLASS_NAV) | UBX_ID_NAV_TIMEGPS << 8)
#define UBX_MSG_NAV_SVINFO ((UBX_CLASS_NAV) | UBX_ID_NAV_SVINFO << 8)
#define UBX_MSG_NAV_SAT ((UBX_CLASS_NAV) | UBX_ID_NAV_SAT << 8)
#define UBX_MSG_NAV_STATUS ((UBX_CLASS_NAV) | UBX_ID_NAV_STATUS << 8)
Expand Down Expand Up @@ -366,6 +368,7 @@
#define UBX_CFG_KEY_MSGOUT_RTCM_3X_TYPE1097_I2C 0x20910318
#define UBX_CFG_KEY_MSGOUT_RTCM_3X_TYPE1127_I2C 0x209102d6
#define UBX_CFG_KEY_MSGOUT_RTCM_3X_TYPE1230_I2C 0x20910303
#define UBX_CFG_KEY_MSGOUT_UBX_NAV_TIMEGPS_I2C 0x20910047

#define UBX_CFG_KEY_MSGOUT_UBX_NAV_RELPOSNED_UART1 0x2091008e
#define UBX_CFG_KEY_MSGOUT_UBX_NAV_RELPOSNED_UART2 0x2091008f
Expand Down

0 comments on commit 1f850de

Please sign in to comment.