10#ifndef NAV_RELPOSNED_H
11#define NAV_RELPOSNED_H
18 .message_class = 0x01,
25typedef enum : uint32_t {
94 const volatile uint8_t *rx_buffer,
98 memcpy(&header, (
const void *)rx_buffer,
sizeof(
ubx_header_t));
NAV_RELPOSNED_payload_t nav_relposned
Definition gps.c:14
static constexpr ubx_header_t NAV_RELPOSNED_HEADER
Definition nav_relposned.h:16
static bool NAV_RELPOSNED_decode(const volatile uint8_t *rx_buffer, NAV_RELPOSNED_payload_t *nav_relposned)
Definition nav_relposned.h:93
static constexpr size_t NAV_RELPOSNED_BUFFER_SIZE
Definition nav_relposned.h:23
NAV_RELPOSNED_flags_t
Definition nav_relposned.h:25
@ NAV_RELPOSNED_FLAGS_CARR_SOLN_FLOAT
Definition nav_relposned.h:32
@ NAV_RELPOSNED_FLAGS_CARR_SOLN_NONE
Definition nav_relposned.h:31
@ NAV_RELPOSNED_FLAGS_CARR_SOLN_FIXED
Definition nav_relposned.h:33
@ NAV_RELPOSNED_FLAGS_IS_MOVING
Definition nav_relposned.h:35
@ NAV_RELPOSNED_FLAGS_GNSS_FIX_OK
Definition nav_relposned.h:26
@ NAV_RELPOSNED_FLAGS_DIFF_SOLN
Definition nav_relposned.h:27
@ NAV_RELPOSNED_FLAGS_REL_POS_VALID
Definition nav_relposned.h:28
@ NAV_RELPOSNED_FLAGS_REF_POS_MISS
Definition nav_relposned.h:36
@ NAV_RELPOSNED_FLAGS_REF_OBS_MISS
Definition nav_relposned.h:37
@ NAV_RELPOSNED_FLAGS_CARR_SOLN_MASK
Definition nav_relposned.h:30
@ NAV_RELPOSNED_FLAGS_NORMALIZED
Definition nav_relposned.h:39
@ NAV_RELPOSNED_FLAGS_HEADING_VALID
Definition nav_relposned.h:38
Definition nav_relposned.h:42
uint16_t refStationId
Definition nav_relposned.h:45
int32_t relPosLength
Definition nav_relposned.h:51
int32_t relPosD
Definition nav_relposned.h:50
uint32_t iTOW
Definition nav_relposned.h:46
int32_t relPosN
Definition nav_relposned.h:48
int8_t relPosHPN
Definition nav_relposned.h:55
int8_t relPosHPLength
Definition nav_relposned.h:58
NAV_RELPOSNED_flags_t flags
Definition nav_relposned.h:67
uint8_t version
Definition nav_relposned.h:43
uint32_t accD
Definition nav_relposned.h:62
int8_t relPosHPD
Definition nav_relposned.h:57
uint32_t accN
Definition nav_relposned.h:60
uint32_t accLength
Definition nav_relposned.h:63
uint8_t reserved0
Definition nav_relposned.h:44
uint32_t accE
Definition nav_relposned.h:61
int8_t relPosHPE
Definition nav_relposned.h:56
int32_t relPosE
Definition nav_relposned.h:49
int32_t relPosHeading
Definition nav_relposned.h:52
uint32_t accHeading
Definition nav_relposned.h:64
UBX common definitions and utility functions.
static constexpr size_t UBX_OVERHEAD
Definition ubx_common.h:28
static constexpr uint8_t UBX_SYNC_B0
Definition ubx_common.h:17
static constexpr uint8_t UBX_SYNC_B1
Definition ubx_common.h:18
static bool UBX_is_matching_header(const ubx_header_t *header, const ubx_header_t *expected)
Definition ubx_common.h:30
static constexpr size_t UBX_HEADER_LENGTH
Definition ubx_common.h:16
static bool UBX_is_valid_checksum(const uint8_t *rx_buffer, const size_t payload_length)
Definition ubx_common.h:41