19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
35 chassis->mutable_accel_rpt_68()->set_manual_input(
36 manual_input(bytes, length));
37 chassis->mutable_accel_rpt_68()->set_commanded_value(
38 commanded_value(bytes, length));
39 chassis->mutable_accel_rpt_68()->set_output_value(
40 output_value(bytes, length));
46double Accelrpt68::manual_input(
const std::uint8_t* bytes,
47 int32_t length)
const {
49 int32_t x = t0.get_byte(0, 8);
52 int32_t t = t1.get_byte(0, 8);
56 double ret = x * 0.001000;
63double Accelrpt68::commanded_value(
const std::uint8_t* bytes,
64 int32_t length)
const {
66 int32_t x = t0.get_byte(0, 8);
69 int32_t t = t1.get_byte(0, 8);
73 double ret = x * 0.001000;
80double Accelrpt68::output_value(
const std::uint8_t* bytes,
81 int32_t length)
const {
83 int32_t x = t0.get_byte(0, 8);
86 int32_t t = t1.get_byte(0, 8);
90 double ret = x * 0.001000;
void Parse(const std::uint8_t *bytes, int32_t length, Gem *chassis) const override