Struct MsgThrtlInfo

Struct Documentation

struct MsgThrtlInfo

Public Types

enum class OnePedalMode : uint8_t

Values:

enumerator Unknown
enumerator Off
enumerator On
enumerator Fault
enum class DriveMode : uint8_t

Values:

enumerator Unknown
enumerator Normal
enumerator Economy
enumerator Comfort
enumerator Sport
enumerator TowHaul
enumerator Snow
enumerator Sand
enumerator Mud
enumerator Rock
enumerator Baja
enumerator Track
enum class GearNumber : uint8_t

Values:

enumerator Unknown
enumerator Drive01
enumerator Drive02
enumerator Drive03
enumerator Drive04
enumerator Drive05
enumerator Drive06
enumerator Drive07
enumerator Drive08
enumerator Drive09
enumerator Drive10
enumerator Neutral
enumerator Reverse1
enumerator Reverse2
enumerator Park

Public Functions

inline void reset()
inline void setAccelPedalPercent(float pc)
inline bool accelPedalPercentValid() const
inline bool accelPedalZero() const
inline float accelPedalPercent() const
inline uint16_t accelPedalPercentU16() const
inline void setEngineRpmx4(uint16_t rpm_x4)
inline void setEngineRpm(float rpm)
inline bool engineRpmValid() const
inline bool engineRpmZero() const
inline float engineRpm() const
inline void setCrc()
inline bool validCrc() const
inline bool validRc(uint8_t rc) const

Public Members

uint16_t accel_pedal_pc
Quality accel_pedal_qf
OnePedalMode one_pedal_drive
uint16_t engine_rpm
uint8_t __pad0__
uint8_t __pad1__
DriveMode drive_mode
GearNumber gear_num
uint8_t __pad2__
uint8_t rc
uint8_t crc

Public Static Attributes

static constexpr uint32_t ID = 0x109
static constexpr size_t PERIOD_MIN = 8
static constexpr size_t PERIOD_MS = 10
static constexpr size_t PERIOD_MAX = 25
static constexpr size_t TIMEOUT_MS = 200