Struct MsgSteerOffset

Struct Documentation

struct MsgSteerOffset

Public Types

enum class OffsetType : uint8_t

Values:

enumerator Unknown
enumerator Relative
enumerator Absolute

Public Functions

inline void reset()
inline void setAngleDeg(float deg)
inline bool angleValid() const
inline float angleDeg() const
inline void setAngleRawDegX10(int32_t deg)
inline void setAngleRawDeg(float deg)
inline bool angleRawValid() const
inline float angleRawDeg() const
inline void setAngleOffsetDegX10(int32_t deg)
inline void setAngleOffsetDeg(float deg)
inline bool angleOffsetValid() const
inline float angleOffsetDeg() const
inline void setCrc()
inline bool validCrc() const
inline bool validRc(uint8_t rc) const

Public Members

int16_t angle
uint8_t __pad0__
int16_t angle_raw
int16_t angle_offset
OffsetType offset_type
uint8_t __pad1__
uint8_t rc
uint8_t crc

Public Static Attributes

static constexpr uint32_t ID = 0x10C
static constexpr size_t PERIOD_MIN = 8
static constexpr size_t PERIOD_MS = 500
static constexpr size_t PERIOD_MAX = 500
static constexpr size_t TIMEOUT_MS = 1750