19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
35 chassis->mutable_fbs1_243()->set_longitudeacce(
36 longitudeacce(bytes, length));
37 chassis->mutable_fbs1_243()->set_lateralacce(
38 lateralacce(bytes, length));
39 chassis->mutable_fbs1_243()->set_vehdynyawrate(
40 vehdynyawrate(bytes, length));
41 chassis->mutable_fbs1_243()->set_flwheelspd(
42 flwheelspd(bytes, length));
43 chassis->mutable_fbs1_243()->set_frwheeldirection(
44 frwheeldirection(bytes, length));
51double Fbs1243::longitudeacce(
const std::uint8_t* bytes, 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.000980 + -21.592000;
68double Fbs1243::lateralacce(
const std::uint8_t* bytes, int32_t length)
const {
70 int32_t x = t0.get_byte(0, 8);
73 int32_t t = t1.get_byte(0, 8);
77 double ret = x * 0.000980 + -21.592000;
85double Fbs1243::vehdynyawrate(
const std::uint8_t* bytes, int32_t length)
const {
87 int32_t x = t0.get_byte(0, 8);
90 int32_t t = t1.get_byte(0, 8);
94 double ret = x * 0.000240 + -2.093000;
102double Fbs1243::flwheelspd(
const std::uint8_t* bytes, int32_t length)
const {
104 int32_t x = t0.get_byte(0, 8);
107 int32_t t = t1.get_byte(3, 5);
111 double ret = x * 0.056250;
122 const std::uint8_t* bytes, int32_t length)
const {
124 int32_t x = t0.get_byte(0, 2);
void Parse(const std::uint8_t *bytes, int32_t length, Wey *chassis) const override