25using ::apollo::drivers::canbus::Byte;
30 Lincoln *chassis_detail)
const {
33 chassis_detail->mutable_brake()->set_major_version(
35 chassis_detail->mutable_brake()->set_minor_version(
37 chassis_detail->mutable_brake()->set_build_number(
41 chassis_detail->mutable_gas()->set_major_version(
43 chassis_detail->mutable_gas()->set_minor_version(
45 chassis_detail->mutable_gas()->set_build_number(
49 chassis_detail->mutable_eps()->set_major_version(
51 chassis_detail->mutable_eps()->set_minor_version(
53 chassis_detail->mutable_eps()->set_build_number(
62 int32_t length)
const {
63 Byte frame(bytes + 0);
64 int32_t x = frame.get_byte(0, 8);
69 int32_t length)
const {
70 Byte frame_high(bytes + 3);
71 int32_t high = frame_high.get_byte(0, 8);
72 Byte frame_low(bytes + 2);
73 int32_t low = frame_low.get_byte(0, 8);
74 int32_t value = (high << 8) | low;
79 int32_t length)
const {
80 Byte frame_high(bytes + 5);
81 int32_t high = frame_high.get_byte(0, 8);
82 Byte frame_low(bytes + 4);
83 int32_t low = frame_low.get_byte(0, 8);
84 int32_t value = (high << 8) | low;
89 int32_t length)
const {
90 Byte frame_high(bytes + 7);
91 int32_t high = frame_high.get_byte(0, 8);
92 Byte frame_low(bytes + 6);
93 int32_t low = frame_low.get_byte(0, 8);
94 int32_t value = (high << 8) | low;
int32_t build_number(const std::uint8_t *bytes, int32_t length) const
get build number based on byte array.
int32_t module_name(const std::uint8_t *bytes, int32_t length) const
get module name based on byte array.
int32_t minor_version(const std::uint8_t *bytes, int32_t length) const
get minor version based on byte array.
virtual void Parse(const std::uint8_t *bytes, int32_t length, Lincoln *chassis_detail) const
int32_t major_version(const std::uint8_t *bytes, int32_t length) const
get major version based on byte array.