Struct MsgThrtlCmd

Inheritance Relationships

Derived Types

Struct Documentation

struct MsgThrtlCmd

Subclassed by ds_dbw_can::MsgThrtlCmdRmt, ds_dbw_can::MsgThrtlCmdUlc, ds_dbw_can::MsgThrtlCmdUsr

Public Types

enum class CmdType : uint8_t

Values:

enumerator None
enumerator PedalRaw
enumerator Percent

Public Functions

inline void reset()
inline void setCmdPercent(float percent, float inc_percent_s = 0, float dec_percent_s = 0)
inline float cmdPercent() const
inline float cmdRateIncPercentS() const
inline float cmdRateDecPercentS() const
inline uint16_t cmdPercentU16() const
inline uint16_t cmdRateIncPercentSU16() const
inline uint16_t cmdRateDecPercentSU16() const
inline bool validRc(uint8_t rc) const

Public Members

uint16_t cmd
CmdType cmd_type
uint8_t enable
uint8_t clear
uint8_t ignore
uint8_t __pad0__
uint8_t rate_inc
uint8_t rate_dec
uint8_t __pad1__
uint8_t __pad2__
uint8_t rc
uint8_t crc

Public Static Attributes

static constexpr size_t TIMEOUT_MS = 100