Struct MsgBrakeReport2

Struct Documentation

struct MsgBrakeReport2

Public Types

enum class BrkAvlMode : uint8_t

Values:

enumerator Unlimited
enumerator SecondsX2
enumerator MillisecondsX100

Public Functions

inline void reset()
inline void setLimitValuePercentU16(uint16_t percent, bool valid)
inline void setLimitValuePercent(float percent)
inline float getLimitValuePercent() const
inline void setLimitValuePressureBar(float bar)
inline float getLimitValuePressureBar() const
inline void setLimitValueDecelMps2x1k(int16_t ms2_x1k)
inline float getLimitValueDecelMps2() const
inline void setBrkAvailDurUnlimited()
inline void setBrkAvailDurSec(uint16_t seconds, uint16_t seconds_full, uint16_t offset = 0)
inline void setBrkAvailDurMs(uint32_t ms, uint32_t ms_full)
inline bool brkAvailDurValid() const
inline float brkAvailDurSec() const
inline void setCrc()
inline bool validCrc() const
inline bool validRc(uint8_t rc) const

Public Members

uint8_t degraded
uint8_t degraded_cmd_type
uint8_t degraded_comms
uint8_t degraded_internal
uint8_t degraded_vehicle
uint8_t degraded_actuator
uint8_t __pad0__
uint8_t __pad1__
uint8_t fault_power
uint8_t fault_comms
uint8_t fault_internal
uint8_t fault_vehicle
uint8_t fault_actuator
uint8_t __pad2__
uint8_t __pad3__
uint8_t __pad4__
uint8_t __pad5__
uint16_t limit_value
uint8_t __pad6__
uint8_t comms_loss_armed
uint8_t req_park_brake
uint8_t req_shift_park
uint8_t brake_available_full
uint8_t brake_available_duration
BrkAvlMode brake_available_mux
uint8_t external_button
CmdSrc cmd_src
uint8_t rc
uint8_t crc

Public Static Attributes

static constexpr uint32_t ID = 0x301
static constexpr size_t PERIOD_MS = 200
static constexpr size_t TIMEOUT_MS = 1000