19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
35 chassis->mutable_steering_motor_rpt_3_75()->set_torque_output(
36 torque_output(bytes, length));
37 chassis->mutable_steering_motor_rpt_3_75()->set_torque_input(
38 torque_input(bytes, length));
45double Steeringmotorrpt375::torque_output(
const std::uint8_t* bytes,
46 int32_t length)
const {
48 int32_t x = t0.get_byte(0, 8);
51 int32_t t = t1.get_byte(0, 8);
56 t = t2.get_byte(0, 8);
61 t = t3.get_byte(0, 8);
68 double ret = x * 0.001000;
76double Steeringmotorrpt375::torque_input(
const std::uint8_t* bytes,
77 int32_t length)
const {
79 int32_t x = t0.get_byte(0, 8);
82 int32_t t = t1.get_byte(0, 8);
87 t = t2.get_byte(0, 8);
92 t = t3.get_byte(0, 8);
99 double ret = x * 0.001000;
void Parse(const std::uint8_t *bytes, int32_t length, Gem *chassis) const override