Skip to content

Commit 91b331d

Browse files
author
Jason Mobarak
committed
c: update VEL_COG masks
1 parent ac26672 commit 91b331d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

c/include/libsbp/navigation.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ typedef struct SBP_ATTR_PACKED {
13841384
* direction of travel, but not necessarily the device heading.
13851385
*/
13861386
#define SBP_MSG_VEL_COG 0x021C
1387-
#define SBP_VEL_COG_VERTICAL_VELOCITY_VALIDITY_MASK (0x3)
1387+
#define SBP_VEL_COG_VERTICAL_VELOCITY_VALIDITY_MASK (0x1)
13881388
#define SBP_VEL_COG_VERTICAL_VELOCITY_VALIDITY_SHIFT (5u)
13891389
#define SBP_VEL_COG_VERTICAL_VELOCITY_VALIDITY_GET(flags) \
13901390
(((flags) >> SBP_VEL_COG_VERTICAL_VELOCITY_VALIDITY_SHIFT) & \
@@ -1397,7 +1397,7 @@ typedef struct SBP_ATTR_PACKED {
13971397

13981398
#define SBP_VEL_COG_VERTICAL_VELOCITY_VALIDITY_INVALID (0)
13991399
#define SBP_VEL_COG_VERTICAL_VELOCITY_VALIDITY_VERTICAL_VELOCITY_VALID (1)
1400-
#define SBP_VEL_COG_SOG_VALIDITY_MASK (0x3)
1400+
#define SBP_VEL_COG_SOG_VALIDITY_MASK (0x1)
14011401
#define SBP_VEL_COG_SOG_VALIDITY_SHIFT (4u)
14021402
#define SBP_VEL_COG_SOG_VALIDITY_GET(flags) \
14031403
(((flags) >> SBP_VEL_COG_SOG_VALIDITY_SHIFT) & SBP_VEL_COG_SOG_VALIDITY_MASK)
@@ -1409,7 +1409,7 @@ typedef struct SBP_ATTR_PACKED {
14091409

14101410
#define SBP_VEL_COG_SOG_VALIDITY_INVALID (0)
14111411
#define SBP_VEL_COG_SOG_VALIDITY_SOG_VALID (1)
1412-
#define SBP_VEL_COG_COG_VALIDITY_MASK (0x3)
1412+
#define SBP_VEL_COG_COG_VALIDITY_MASK (0x1)
14131413
#define SBP_VEL_COG_COG_VALIDITY_SHIFT (3u)
14141414
#define SBP_VEL_COG_COG_VALIDITY_GET(flags) \
14151415
(((flags) >> SBP_VEL_COG_COG_VALIDITY_SHIFT) & SBP_VEL_COG_COG_VALIDITY_MASK)
@@ -1421,7 +1421,7 @@ typedef struct SBP_ATTR_PACKED {
14211421

14221422
#define SBP_VEL_COG_COG_VALIDITY_INVALID (0)
14231423
#define SBP_VEL_COG_COG_VALIDITY_COG_VALID (1)
1424-
#define SBP_VEL_COG_INS_NAVIGATION_MODE_MASK (0x3)
1424+
#define SBP_VEL_COG_INS_NAVIGATION_MODE_MASK (0x1)
14251425
#define SBP_VEL_COG_INS_NAVIGATION_MODE_SHIFT (2u)
14261426
#define SBP_VEL_COG_INS_NAVIGATION_MODE_GET(flags) \
14271427
(((flags) >> SBP_VEL_COG_INS_NAVIGATION_MODE_SHIFT) & \
@@ -1434,7 +1434,7 @@ typedef struct SBP_ATTR_PACKED {
14341434

14351435
#define SBP_VEL_COG_INS_NAVIGATION_MODE_NONE (0)
14361436
#define SBP_VEL_COG_INS_NAVIGATION_MODE_INS_USED (1)
1437-
#define SBP_VEL_COG_VELOCITY_MODE_MASK (0x7)
1437+
#define SBP_VEL_COG_VELOCITY_MODE_MASK (0x3)
14381438
#define SBP_VEL_COG_VELOCITY_MODE_SHIFT (0u)
14391439
#define SBP_VEL_COG_VELOCITY_MODE_GET(flags) \
14401440
(((flags) >> SBP_VEL_COG_VELOCITY_MODE_SHIFT) & \

0 commit comments

Comments
 (0)