19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
35 chassis->mutable_fbs2_240()->set_flwheeldirection(
36 flwheeldirection(bytes, length));
37 chassis->mutable_fbs2_240()->set_frwheelspd(
38 frwheelspd(bytes, length));
39 chassis->mutable_fbs2_240()->set_rlwheeldrivedirection(
40 rlwheeldrivedirection(bytes, length));
41 chassis->mutable_fbs2_240()->set_rlwheelspd(
42 rlwheelspd(bytes, length));
43 chassis->mutable_fbs2_240()->set_rrwheeldirection(
44 rrwheeldirection(bytes, length));
45 chassis->mutable_fbs2_240()->set_rrwheelspd(
46 rrwheelspd(bytes, length));
48 chassis->mutable_fbs2_240()->set_vehiclespd(
49 vehiclespd(bytes, length) / 3.6);
59 const std::uint8_t* bytes, int32_t length)
const {
61 int32_t x = t0.get_byte(0, 2);
72double Fbs2240::frwheelspd(
const std::uint8_t* bytes, int32_t length)
const {
74 int32_t x = t0.get_byte(0, 8);
77 int32_t t = t1.get_byte(3, 5);
81 double ret = x * 0.056250;
92 const std::uint8_t* bytes, int32_t length)
const {
94 int32_t x = t0.get_byte(0, 2);
105double Fbs2240::rlwheelspd(
const std::uint8_t* bytes, int32_t length)
const {
107 int32_t x = t0.get_byte(0, 8);
110 int32_t t = t1.get_byte(3, 5);
114 double ret = x * 0.056250;
125 const std::uint8_t* bytes, int32_t length)
const {
127 int32_t x = t0.get_byte(0, 2);
138double Fbs2240::rrwheelspd(
const std::uint8_t* bytes, int32_t length)
const {
140 int32_t x = t0.get_byte(0, 8);
143 int32_t t = t1.get_byte(3, 5);
147 double ret = x * 0.056250;
155double Fbs2240::vehiclespd(
const std::uint8_t* bytes, int32_t length)
const {
157 int32_t x = t0.get_byte(0, 8);
160 int32_t t = t1.get_byte(3, 5);
164 double ret = x * 0.056250;
void Parse(const std::uint8_t *bytes, int32_t length, Wey *chassis) const override
RlwheeldrivedirectionType