18#include "glog/logging.h"
26using ::apollo::drivers::canbus::Byte;
33 chassis->mutable_scu_vcu_2_313()->set_vcu_torqposmax(
34 vcu_torqposmax(bytes, length));
35 chassis->mutable_scu_vcu_2_313()->set_vcu_torqnegmax(
36 vcu_torqnegmax(bytes, length));
37 chassis->mutable_scu_vcu_2_313()->set_vcu_torqact(
38 vcu_torqact(bytes, length));
39 chassis->mutable_scu_vcu_2_313()->set_vcu_engspd(
40 vcu_engspd(bytes, length));
47double Scuvcu2313::vcu_torqposmax(
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(5, 3);
57 double ret = x * 1.500000;
65double Scuvcu2313::vcu_torqnegmax(
const std::uint8_t* bytes,
66 int32_t length)
const {
68 int32_t x = t0.get_byte(0, 8);
71 int32_t t = t1.get_byte(5, 3);
75 double ret = x * 1.500000 + -3000.000000;
83double Scuvcu2313::vcu_torqact(
const std::uint8_t* bytes,
84 int32_t length)
const {
86 int32_t x = t0.get_byte(0, 8);
89 int32_t t = t1.get_byte(4, 4);
93 double ret = x * 1.500000 + -3000.000000;
101int Scuvcu2313::vcu_engspd(
const std::uint8_t* bytes, int32_t length)
const {
103 int32_t x = t0.get_byte(0, 8);
106 int32_t t = t1.get_byte(0, 8);
void Parse(const std::uint8_t *bytes, int32_t length, Ge3 *chassis) const override