19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
35 chassis->mutable_brake_motor_rpt_2_71()->set_encoder_temperature(
36 encoder_temperature(bytes, length));
37 chassis->mutable_brake_motor_rpt_2_71()->set_motor_temperature(
38 motor_temperature(bytes, length));
39 chassis->mutable_brake_motor_rpt_2_71()->set_angular_speed(
40 angular_speed(bytes, length));
47int Brakemotorrpt271::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);
68int Brakemotorrpt271::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);
88double Brakemotorrpt271::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, Gem *chassis) const override