19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
35 chassis->mutable_llc_motionfeedback2_21()->set_llc_fbk_vehiclespeed(
36 llc_fbk_vehiclespeed(bytes, length));
37 chassis->mutable_llc_motionfeedback2_21()->set_llc_motionfeedback2_counter(
38 llc_motionfeedback2_counter(bytes, length));
39 chassis->mutable_llc_motionfeedback2_21()->set_llc_motionfeedback2_checksum(
40 llc_motionfeedback2_checksum(bytes, length));
41 chassis->mutable_llc_motionfeedback2_21()->set_llc_fbk_steeringrate(
42 llc_fbk_steeringrate(bytes, length));
43 chassis->mutable_llc_motionfeedback2_21()->set_llc_fbk_steeringangle(
44 llc_fbk_steeringangle(bytes, length));
50double Llcmotionfeedback221::llc_fbk_vehiclespeed(
const std::uint8_t* bytes,
51 int32_t length)
const {
53 int32_t x = t0.get_byte(0, 8);
56 int32_t t = t1.get_byte(0, 8);
60 double ret = x * 0.010000;
68int Llcmotionfeedback221::llc_motionfeedback2_counter(
const std::uint8_t* bytes,
69 int32_t length)
const {
71 int32_t x = t0.get_byte(6, 2);
81int Llcmotionfeedback221::llc_motionfeedback2_checksum(
82 const std::uint8_t* bytes, int32_t length)
const {
84 int32_t x = t0.get_byte(0, 8);
95double Llcmotionfeedback221::llc_fbk_steeringrate(
const std::uint8_t* bytes,
96 int32_t length)
const {
98 int32_t x = t0.get_byte(0, 8);
101 int32_t t = t1.get_byte(0, 8);
108 double ret = x * 0.050000;
116double Llcmotionfeedback221::llc_fbk_steeringangle(
const std::uint8_t* bytes,
117 int32_t length)
const {
119 int32_t x = t0.get_byte(0, 8);
122 int32_t t = t1.get_byte(0, 8);
129 double ret = x * 0.050000;
void Parse(const std::uint8_t *bytes, int32_t length, Transit *chassis) const override