24#include "modules/canbus_vehicle/lincoln/proto/lincoln.pb.h"
41 ::apollo::canbus::Lincoln> {
43 static const int32_t
ID;
51 virtual void Parse(
const std::uint8_t *bytes, int32_t length,
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;
one of the protocol data of lincoln vehicle
bool is_driver_override(const std::uint8_t *bytes, int32_t length) const
check driver override bit based on byte array.
double pedal_cmd(const std::uint8_t *bytes, int32_t length) const
calculate pedal command based on byte array.
double pedal_output(const std::uint8_t *bytes, int32_t length) const
calculate pedal output based on byte array.
bool is_connector_fault(const std::uint8_t *bytes, int32_t length) const
check connector fault bit based on byte array.
double pedal_input(const std::uint8_t *bytes, int32_t length) const
calculate pedal input based on byte array.
bool is_channel_2_fault(const std::uint8_t *bytes, int32_t length) const
check channel 2 fault bit based on byte array.
bool is_watchdog_counter_fault(const std::uint8_t *bytes, int32_t length) const
check watchdog counter fault bit based on byte array.
bool is_enabled(const std::uint8_t *bytes, int32_t length) const
check enabled bit based on byte array.
virtual void Parse(const std::uint8_t *bytes, int32_t length, Lincoln *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.
bool is_driver_activity(const std::uint8_t *bytes, int32_t length) const
check driver activity bit based on byte array.
int32_t watchdog_counter_source(const std::uint8_t *bytes, int32_t length) const
calculate watchdog counter source based on byte array.
This is the base class of protocol data.
The class of ProtocolData