24 #include "modules/canbus/proto/chassis_detail.pb.h" 41 ::apollo::canbus::ChassisDetail> {
43 static const int32_t
ID;
51 virtual void Parse(
const std::uint8_t *bytes, int32_t length,
52 ChassisDetail *chassis_detail)
const;
64 double pedal_input(
const std::uint8_t *bytes, int32_t length)
const;
76 double pedal_cmd(
const std::uint8_t *bytes, int32_t length)
const;
88 double pedal_output(
const std::uint8_t *bytes, int32_t length)
const;
100 int32_t length)
const;
111 bool is_enabled(
const std::uint8_t *bytes, int32_t length)
const;
145 int32_t length)
const;
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...
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...
int32_t watchdog_counter_source(const std::uint8_t *bytes, int32_t length) const
calculate watchdog counter source based on byte array. config detail: {'name': 'wdcsrc', 'offset': 0.0, 'precision': 1.0, 'len': 4, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 52, 'type': 'int', 'order': 'intel', 'physical_unit': '""'}
virtual void Parse(const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis_detail) const
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': '""'}
static const int32_t ID
Definition: throttle_63.h:43
double pedal_output(const std::uint8_t *bytes, int32_t length) const
calculate pedal output based on byte array. config detail: {'name': 'po', 'offset': 0...
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': '""'}
The class of ProtocolData.
bool is_watchdog_counter_fault(const std::uint8_t *bytes, int32_t length) const
check watchdog counter fault bit 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': '""'}
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 pedal_input(const std::uint8_t *bytes, int32_t length) const
calculate pedal input based on byte array. config detail: {'name': 'pi', 'offset': 0...
one of the protocol data of lincoln vehicle
Definition: throttle_63.h:40
double pedal_cmd(const std::uint8_t *bytes, int32_t length) const
calculate pedal command based on byte array. config detail: {'name': 'pc', 'offset': 0...