19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
34 Lexus* chassis)
const {
35 chassis->mutable_brake_motor_rpt_2_402()->set_encoder_temperature(
36 encoder_temperature(bytes, length));
37 chassis->mutable_brake_motor_rpt_2_402()->set_motor_temperature(
38 motor_temperature(bytes, length));
39 chassis->mutable_brake_motor_rpt_2_402()->set_angular_speed(
40 angular_speed(bytes, length));
47int Brakemotorrpt2402::encoder_temperature(
const std::uint8_t* bytes,
48 int32_t length)
const {
50 int32_t x = t0.get_byte(0, 8);
53 int32_t t = t1.get_byte(0, 8);
60 int ret =
static_cast<int>(x + -40.000000);
68int Brakemotorrpt2402::motor_temperature(
const std::uint8_t* bytes,
69 int32_t length)
const {
71 int32_t x = t0.get_byte(0, 8);
74 int32_t t = t1.get_byte(0, 8);
81 int ret =
static_cast<int>(x + -40.000000);
88double Brakemotorrpt2402::angular_speed(
const std::uint8_t* bytes,
89 int32_t length)
const {
91 int32_t x = t0.get_byte(0, 8);
94 int32_t t = t1.get_byte(0, 8);
99 t = t2.get_byte(0, 8);
104 t = t3.get_byte(0, 8);
108 double ret = x * 0.001000;
void Parse(const std::uint8_t *bytes, int32_t length, Lexus *chassis) const override