19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
35 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_gear(
36 llc_fbk_gear(bytes, length));
37 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_parkingbrake(
38 llc_fbk_parkingbrake(bytes, length));
39 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_throttleposition(
40 llc_fbk_throttleposition(bytes, length));
41 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_brakepercentrear(
42 llc_fbk_brakepercentrear(bytes, length));
43 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_brakepercentfront(
44 llc_fbk_brakepercentfront(bytes, length));
45 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_steeringcontrolmode(
46 llc_fbk_steeringcontrolmode(bytes, length));
47 chassis->mutable_llc_motionfeedback1_20()->set_llc_motionfeedback1_counter(
48 llc_motionfeedback1_counter(bytes, length));
49 chassis->mutable_llc_motionfeedback1_20()->set_llc_motionfeedback1_checksum(
50 llc_motionfeedback1_checksum(bytes, length));
51 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_commandaligned(
52 llc_fbk_commandaligned(bytes, length));
53 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_estoppressed(
54 llc_fbk_estoppressed(bytes, length));
55 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_adcrequestautonomy(
56 llc_fbk_adcrequestautonomy(bytes, length));
57 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_allowautonomy(
58 llc_fbk_allowautonomy(bytes, length));
59 chassis->mutable_llc_motionfeedback1_20()
60 ->set_llc_fbk_longitudinalcontrolmode(
61 llc_fbk_longitudinalcontrolmode(bytes, length));
62 chassis->mutable_llc_motionfeedback1_20()->set_llc_fbk_state(
63 llc_fbk_state(bytes, length));
73 const std::uint8_t* bytes, int32_t length)
const {
75 int32_t x = t0.get_byte(2, 3);
86bool Llcmotionfeedback120::llc_fbk_parkingbrake(
const std::uint8_t* bytes,
87 int32_t length)
const {
89 int32_t x = t0.get_byte(5, 1);
99double Llcmotionfeedback120::llc_fbk_throttleposition(
const std::uint8_t* bytes,
100 int32_t length)
const {
102 int32_t x = t0.get_byte(0, 8);
105 int32_t t = t1.get_byte(6, 2);
109 double ret = x * 0.100000;
117double Llcmotionfeedback120::llc_fbk_brakepercentrear(
const std::uint8_t* bytes,
118 int32_t length)
const {
120 int32_t x = t0.get_byte(0, 6);
123 int32_t t = t1.get_byte(3, 5);
127 double ret = x * 0.055600;
135double Llcmotionfeedback120::llc_fbk_brakepercentfront(
136 const std::uint8_t* bytes, int32_t length)
const {
138 int32_t x = t0.get_byte(0, 3);
141 int32_t t = t1.get_byte(0, 8);
145 double ret = x * 0.055600;
157Llcmotionfeedback120::llc_fbk_steeringcontrolmode(
const std::uint8_t* bytes,
158 int32_t length)
const {
160 int32_t x = t0.get_byte(6, 2);
171int Llcmotionfeedback120::llc_motionfeedback1_counter(
const std::uint8_t* bytes,
172 int32_t length)
const {
174 int32_t x = t0.get_byte(6, 2);
184int Llcmotionfeedback120::llc_motionfeedback1_checksum(
185 const std::uint8_t* bytes, int32_t length)
const {
187 int32_t x = t0.get_byte(0, 8);
197bool Llcmotionfeedback120::llc_fbk_commandaligned(
const std::uint8_t* bytes,
198 int32_t length)
const {
200 int32_t x = t0.get_byte(3, 1);
210bool Llcmotionfeedback120::llc_fbk_estoppressed(
const std::uint8_t* bytes,
211 int32_t length)
const {
213 int32_t x = t0.get_byte(2, 1);
223bool Llcmotionfeedback120::llc_fbk_adcrequestautonomy(
const std::uint8_t* bytes,
224 int32_t length)
const {
226 int32_t x = t0.get_byte(1, 1);
236bool Llcmotionfeedback120::llc_fbk_allowautonomy(
const std::uint8_t* bytes,
237 int32_t length)
const {
239 int32_t x = t0.get_byte(0, 1);
254Llcmotionfeedback120::llc_fbk_longitudinalcontrolmode(
const std::uint8_t* bytes,
255 int32_t length)
const {
257 int32_t x = t0.get_byte(4, 2);
278 const std::uint8_t* bytes, int32_t length)
const {
280 int32_t x = t0.get_byte(0, 4);
void Parse(const std::uint8_t *bytes, int32_t length, Transit *chassis) const override
Llc_fbk_steeringcontrolmodeType
Llc_fbk_longitudinalcontrolmodeType