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