19#include "glog/logging.h"
28using ::apollo::drivers::canbus::Byte;
34 Lexus* chassis)
const {
35 chassis->mutable_steering_rpt_22c()->set_vehicle_fault(
36 vehicle_fault(bytes, length));
37 chassis->mutable_steering_rpt_22c()->set_pacmod_fault(
38 pacmod_fault(bytes, length));
39 chassis->mutable_steering_rpt_22c()->set_override_active(
40 override_active(bytes, length));
41 chassis->mutable_steering_rpt_22c()->set_output_reported_fault(
42 output_reported_fault(bytes, length));
43 chassis->mutable_steering_rpt_22c()->set_input_output_fault(
44 input_output_fault(bytes, length));
45 chassis->mutable_steering_rpt_22c()->set_enabled(
46 enabled(bytes, length));
47 chassis->mutable_steering_rpt_22c()->set_command_output_fault(
48 command_output_fault(bytes, length));
49 chassis->mutable_steering_rpt_22c()->set_manual_input(
50 manual_input(bytes, length));
51 chassis->mutable_steering_rpt_22c()->set_commanded_value(
52 commanded_value(bytes, length));
53 chassis->mutable_steering_rpt_22c()->set_output_value(
54 output_value(bytes, length));
60bool Steeringrpt22c::vehicle_fault(
const std::uint8_t* bytes,
61 int32_t length)
const {
63 int32_t x = t0.get_byte(6, 1);
72bool Steeringrpt22c::pacmod_fault(
const std::uint8_t* bytes,
73 int32_t length)
const {
75 int32_t x = t0.get_byte(5, 1);
84bool Steeringrpt22c::override_active(
const std::uint8_t* bytes,
85 int32_t length)
const {
87 int32_t x = t0.get_byte(1, 1);
96bool Steeringrpt22c::output_reported_fault(
const std::uint8_t* bytes,
97 int32_t length)
const {
99 int32_t x = t0.get_byte(4, 1);
108bool Steeringrpt22c::input_output_fault(
const std::uint8_t* bytes,
109 int32_t length)
const {
111 int32_t x = t0.get_byte(3, 1);
120bool Steeringrpt22c::enabled(
const std::uint8_t* bytes, int32_t length)
const {
122 int32_t x = t0.get_byte(0, 1);
131bool Steeringrpt22c::command_output_fault(
const std::uint8_t* bytes,
132 int32_t length)
const {
134 int32_t x = t0.get_byte(2, 1);
143double Steeringrpt22c::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);
156 double ret = x * 0.001000;
163double Steeringrpt22c::commanded_value(
const std::uint8_t* bytes,
164 int32_t length)
const {
166 int32_t x = t0.get_byte(0, 8);
169 int32_t t = t1.get_byte(0, 8);
176 double ret = x * 0.001000;
183double Steeringrpt22c::output_value(
const std::uint8_t* bytes,
184 int32_t length)
const {
186 int32_t x = t0.get_byte(0, 8);
189 int32_t t = t1.get_byte(0, 8);
196 double ret = x * 0.001000;
void Parse(const std::uint8_t *bytes, int32_t length, Lexus *chassis) const override