26 #include "modules/canbus/proto/chassis_detail.pb.h" 43 ::apollo::canbus::ChassisDetail> {
45 static const int32_t
ID;
53 virtual void Parse(
const std::uint8_t *bytes, int32_t length,
54 ChassisDetail *chassis_detail)
const;
63 virtual void Parse(
const std::uint8_t *bytes, int32_t length,
64 const struct timeval ×tamp,
65 ChassisDetail *chassis_detail)
const;
77 double steering_angle(
const std::uint8_t *bytes, int32_t length)
const;
90 int32_t length)
const;
101 double vehicle_speed(
const std::uint8_t *bytes, int32_t length)
const;
113 double epas_torque(
const std::uint8_t *bytes, int32_t length)
const;
124 bool is_enabled(
const std::uint8_t *bytes, int32_t length)
const;
158 int32_t length)
const;
bool is_calibration_fault(const std::uint8_t *bytes, int32_t length) const
check calibration fault bit based on byte array. config detail: {'name': 'fltcal', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 62, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
static const int32_t ID
Definition: steering_65.h:45
bool is_enabled(const std::uint8_t *bytes, int32_t length) const
check enabled bit based on byte array. config detail: {'name': 'en', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 56, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
double steering_angle(const std::uint8_t *bytes, int32_t length) const
calculate steering angle based on byte array. config detail: {'name': 'angle', 'offset': 0...
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
This is the base class of protocol data.
Definition: protocol_data.h:44
bool is_connector_fault(const std::uint8_t *bytes, int32_t length) const
check connector fault bit based on byte array. config detail: {'name': 'fltcon', 'offset': 0...
bool is_watchdog_counter_fault(const std::uint8_t *bytes, int32_t length) const
check watchdog counter fault based on byte array. config detail: {'name': 'fltwdc', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 59, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
one of the protocol data of lincoln vehicle
Definition: steering_65.h:42
virtual void Parse(const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis_detail) const
bool is_channel_1_fault(const std::uint8_t *bytes, int32_t length) const
check channel 1 fault bit based on byte array. config detail: {'name': 'flt1', 'offset': 0...
double epas_torque(const std::uint8_t *bytes, int32_t length) const
calculate epas torque based on byte array. config detail: {'name': 'torque', 'offset': 0...
double reported_steering_angle_cmd(const std::uint8_t *bytes, int32_t length) const
calculate reported steering angle command based on byte array. config detail: {'name': 'cmd'...
The class of ProtocolData.
bool is_channel_2_fault(const std::uint8_t *bytes, int32_t length) const
check channel 2 fault bit based on byte array. config detail: {'name': 'flt2', 'offset': 0...
bool is_driver_override(const std::uint8_t *bytes, int32_t length) const
check driver override bit based on byte array. config detail: {'name': 'override', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 57, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
double vehicle_speed(const std::uint8_t *bytes, int32_t length) const
calculate vehicle speed based on byte array. config detail: {'name': 'speed', 'offset': 0...
bool is_driver_activity(const std::uint8_t *bytes, int32_t length) const
check driver activity bit based on byte array. config detail: {'name': 'driver', 'offset': 0...