19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
34 Lexus* chassis)
const {
35 chassis->mutable_brake_motor_rpt_1_401()->set_motor_current(
36 motor_current(bytes, length));
37 chassis->mutable_brake_motor_rpt_1_401()->set_shaft_position(
38 shaft_position(bytes, length));
44double Brakemotorrpt1401::motor_current(
const std::uint8_t* bytes,
45 int32_t length)
const {
47 int32_t x = t0.get_byte(0, 8);
50 int32_t t = t1.get_byte(0, 8);
55 t = t2.get_byte(0, 8);
60 t = t3.get_byte(0, 8);
64 double ret = x * 0.001000;
72double Brakemotorrpt1401::shaft_position(
const std::uint8_t* bytes,
73 int32_t length)
const {
75 int32_t x = t0.get_byte(0, 8);
78 int32_t t = t1.get_byte(0, 8);
83 t = t2.get_byte(0, 8);
88 t = t3.get_byte(0, 8);
95 double ret = x * 0.001000;
void Parse(const std::uint8_t *bytes, int32_t length, Lexus *chassis) const override