19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
34 Lexus* chassis)
const {
35 chassis->mutable_accel_rpt_200()->set_vehicle_fault(
36 vehicle_fault(bytes, length));
37 chassis->mutable_accel_rpt_200()->set_pacmod_fault(
38 pacmod_fault(bytes, length));
39 chassis->mutable_accel_rpt_200()->set_output_reported_fault(
40 output_reported_fault(bytes, length));
41 chassis->mutable_accel_rpt_200()->set_input_output_fault(
42 input_output_fault(bytes, length));
43 chassis->mutable_accel_rpt_200()->set_command_output_fault(
44 command_output_fault(bytes, length));
45 chassis->mutable_accel_rpt_200()->set_override_active(
46 override_active(bytes, length));
47 chassis->mutable_accel_rpt_200()->set_enabled(
48 enabled(bytes, length));
49 chassis->mutable_accel_rpt_200()->set_manual_input(
50 manual_input(bytes, length));
51 chassis->mutable_accel_rpt_200()->set_commanded_value(
52 commanded_value(bytes, length));
53 chassis->mutable_accel_rpt_200()->set_output_value(
54 output_value(bytes, length));
60bool Accelrpt200::vehicle_fault(
const std::uint8_t* bytes,
61 int32_t length)
const {
63 int32_t x = t0.get_byte(6, 1);
72bool Accelrpt200::pacmod_fault(
const std::uint8_t* bytes,
73 int32_t length)
const {
75 int32_t x = t0.get_byte(5, 1);
84bool Accelrpt200::output_reported_fault(
const std::uint8_t* bytes,
85 int32_t length)
const {
87 int32_t x = t0.get_byte(4, 1);
96bool Accelrpt200::input_output_fault(
const std::uint8_t* bytes,
97 int32_t length)
const {
99 int32_t x = t0.get_byte(3, 1);
108bool Accelrpt200::command_output_fault(
const std::uint8_t* bytes,
109 int32_t length)
const {
111 int32_t x = t0.get_byte(2, 1);
120bool Accelrpt200::override_active(
const std::uint8_t* bytes,
121 int32_t length)
const {
123 int32_t x = t0.get_byte(1, 1);
132bool Accelrpt200::enabled(
const std::uint8_t* bytes, int32_t length)
const {
134 int32_t x = t0.get_byte(0, 1);
143double Accelrpt200::manual_input(
const std::uint8_t* bytes,
144 int32_t length)
const {
146 int32_t x = t0.get_byte(0, 8);
149 int32_t t = t1.get_byte(0, 8);
153 double ret = x * 0.001000;
160double Accelrpt200::commanded_value(
const std::uint8_t* bytes,
161 int32_t length)
const {
163 int32_t x = t0.get_byte(0, 8);
166 int32_t t = t1.get_byte(0, 8);
170 double ret = x * 0.001000;
177double Accelrpt200::output_value(
const std::uint8_t* bytes,
178 int32_t length)
const {
180 int32_t x = t0.get_byte(0, 8);
183 int32_t t = t1.get_byte(0, 8);
187 double ret = x * 0.001000;
void Parse(const std::uint8_t *bytes, int32_t length, Lexus *chassis) const override