19#include "modules/canbus_vehicle/demo/proto/demo.pb.h"
30 static const int32_t
ID;
36 void Parse(
const std::uint8_t* bytes, int32_t length,
37 Demo* chassis)
const override;
43 void Reset()
override;
79 void set_p_heartbeat_102(uint8_t* data,
int heartbeat_102);
86 void set_p_steer_en_ctrl(
93 void set_p_steer_angle_target(uint8_t* data,
int steer_angle_target);
99 void set_p_steer_angle_spd_target(uint8_t* data,
int steer_angle_spd_target);
104 void set_p_checksum_102(uint8_t* data,
int checksum_102);
106 int heartbeat_102(
const std::uint8_t* bytes,
const int32_t length)
const;
109 const std::uint8_t* bytes,
const int32_t length)
const;
111 int steer_angle_target(
const std::uint8_t* bytes,
const int32_t length)
const;
113 int steer_angle_spd_target(
const std::uint8_t* bytes,
114 const int32_t length)
const;
116 int checksum_102(
const std::uint8_t* bytes,
const int32_t length)
const;
121 int steer_angle_target_;
122 int steer_angle_spd_target_;
Steeringcommand102 * set_steer_angle_target(int steer_angle_target)
void UpdateData_Heartbeat(uint8_t *data) override
Steeringcommand102 * set_checksum_102(int checksum_102)
Steeringcommand102 * set_steer_angle_spd_target(int steer_angle_spd_target)
Steeringcommand102 * set_heartbeat_102(int heartbeat_102)
void Parse(const std::uint8_t *bytes, int32_t length, Demo *chassis) const override
Steeringcommand102 * set_steer_en_ctrl(Steering_command_102::Steer_en_ctrlType steer_en_ctrl)
uint32_t GetPeriod() const override
void UpdateData(uint8_t *data) override
This is the base class of protocol data.
The class of ProtocolData