19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
35 chassis->mutable_vehicle_state_feedback_2_c4()->set_motor_speed(
36 motor_speed(bytes, length));
37 chassis->mutable_vehicle_state_feedback_2_c4()->set_driven_torque_feedback(
38 driven_torque_feedback(bytes, length));
44int Vehiclestatefeedback2c4::motor_speed(
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);
64double Vehiclestatefeedback2c4::driven_torque_feedback(
65 const std::uint8_t* bytes, int32_t length)
const {
67 int32_t x = t0.get_byte(0, 8);
70 int32_t t = t1.get_byte(0, 8);
74 double ret = x * 0.050000;
void Parse(const std::uint8_t *bytes, int32_t length, Zhongyun *chassis) const override
Vehiclestatefeedback2c4()