19#include "glog/logging.h"
27using ::apollo::drivers::canbus::Byte;
34 chassis->mutable_steering_report_502()->set_steer_angle_rear_actual(
35 steer_angle_rear_actual(bytes, length));
36 chassis->mutable_steering_report_502()->set_steer_angle_spd_actual(
37 steer_angle_spd_actual(bytes, length));
38 chassis->mutable_steering_report_502()->set_steer_flt2(
39 steer_flt2(bytes, length));
40 chassis->mutable_steering_report_502()->set_steer_flt1(
41 steer_flt1(bytes, length));
42 chassis->mutable_steering_report_502()->set_steer_en_state(
43 steer_en_state(bytes, length));
44 chassis->mutable_steering_report_502()->set_steer_angle_actual(
45 steer_angle_actual(bytes, length));
52int Steeringreport502::steer_angle_rear_actual(
const std::uint8_t* bytes,
53 int32_t length)
const {
55 int32_t x = t0.get_byte(0, 8);
58 int32_t t = t1.get_byte(0, 8);
62 int ret = x + -500.000000;
70int Steeringreport502::steer_angle_spd_actual(
const std::uint8_t* bytes,
71 int32_t length)
const {
73 int32_t x = t0.get_byte(0, 8);
86 const std::uint8_t* bytes, int32_t length)
const {
88 int32_t x = t0.get_byte(0, 8);
101 const std::uint8_t* bytes, int32_t length)
const {
103 int32_t x = t0.get_byte(0, 8);
116 const std::uint8_t* bytes, int32_t length)
const {
118 int32_t x = t0.get_byte(0, 2);
129int Steeringreport502::steer_angle_actual(
const std::uint8_t* bytes,
130 int32_t length)
const {
132 int32_t x = t0.get_byte(0, 8);
135 int32_t t = t1.get_byte(0, 8);
139 int ret = x + -500.000000;
void Parse(const std::uint8_t *bytes, int32_t length, Devkit *chassis) const override