Apollo 10.0
自动驾驶开放平台
apollo::canbus::neolix_edu::Vcudrivereport52类 参考

#include <vcu_drive_report_52.h>

类 apollo::canbus::neolix_edu::Vcudrivereport52 继承关系图:
apollo::canbus::neolix_edu::Vcudrivereport52 的协作图:

Public 成员函数

 Vcudrivereport52 ()
 
void Parse (const std::uint8_t *bytes, int32_t length, Neolix_edu *chassis) const override
 
- Public 成员函数 继承自 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Neolix_edu >
 ProtocolData ()=default
 construct protocol data.
 
virtual ~ProtocolData ()=default
 destruct protocol data.
 
virtual uint32_t GetPeriod () const
 
virtual int32_t GetLength () const
 
virtual void Parse (const uint8_t *bytes, int32_t length, ::apollo::canbus::Neolix_edu *sensor_data) const
 
virtual void UpdateData (uint8_t *data)
 
virtual void UpdateData_Heartbeat (uint8_t *data)
 
virtual void Reset ()
 

静态 Public 属性

static const int32_t ID = 0x52
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Neolix_edu >
static std::uint8_t CalculateCheckSum (const uint8_t *input, const uint32_t length)
 static function, used to calculate the checksum of input array.
 
static T BoundedValue (T lower, T upper, T val)
 

详细描述

在文件 vcu_drive_report_52.h26 行定义.

构造及析构函数说明

◆ Vcudrivereport52()

apollo::canbus::neolix_edu::Vcudrivereport52::Vcudrivereport52 ( )

在文件 vcu_drive_report_52.cc30 行定义.

30{}

成员函数说明

◆ Parse()

void apollo::canbus::neolix_edu::Vcudrivereport52::Parse ( const std::uint8_t *  bytes,
int32_t  length,
Neolix_edu chassis 
) const
override

在文件 vcu_drive_report_52.cc33 行定义.

34 {
35 chassis->mutable_vcu_drive_report_52()->set_drive_enable_resp(
36 drive_enable_resp(bytes, length));
37 chassis->mutable_vcu_drive_report_52()->set_control_mode_resp(
38 control_mode_resp(bytes, length));
39 chassis->mutable_vcu_drive_report_52()->set_vcu_real_shift(
40 vcu_real_shift(bytes, length));
41 chassis->mutable_vcu_drive_report_52()->set_vcu_real_shift_valid(
42 vcu_real_shift_valid(bytes, length));
43 chassis->mutable_vcu_drive_report_52()->set_vcu_real_torque_valid(
44 vcu_real_torque_valid(bytes, length));
45 chassis->mutable_vcu_drive_report_52()->set_vcu_real_torque(
46 vcu_real_torque(bytes, length));
47 chassis->mutable_vcu_drive_report_52()->set_vcu_limitedtorquemode(
48 vcu_limitedtorquemode(bytes, length));
49 chassis->mutable_vcu_drive_report_52()->set_vcu_driverept_alivecounter(
50 vcu_driverept_alivecounter(bytes, length));
51 chassis->mutable_vcu_drive_report_52()->set_vcu_driverept_checksum(
52 vcu_driverept_checksum(bytes, length));
53
54 chassis->mutable_safety()->set_driving_mode(Chassis::COMPLETE_AUTO_DRIVE);
55 chassis->mutable_gas()->set_gas_pedal_position(
56 vcu_real_torque(bytes, length));
57 chassis->mutable_gear()->set_gear_state(
58 (apollo::canbus::Chassis_GearPosition)vcu_real_shift(bytes, length));
59}

类成员变量说明

◆ ID

const int32_t apollo::canbus::neolix_edu::Vcudrivereport52::ID = 0x52
static

在文件 vcu_drive_report_52.h29 行定义.


该类的文档由以下文件生成: