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

#include <llc_motioncommandfeedback1_22.h>

类 apollo::canbus::transit::Llcmotioncommandfeedback122 继承关系图:
apollo::canbus::transit::Llcmotioncommandfeedback122 的协作图:

Public 成员函数

 Llcmotioncommandfeedback122 ()
 
void Parse (const std::uint8_t *bytes, int32_t length, Transit *chassis) const override
 
 FRIEND_TEST (Motioncommandfeedback1_22_test, General)
 
- Public 成员函数 继承自 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Transit >
 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::Transit *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 = 0x22
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Transit >
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)
 

详细描述

在文件 llc_motioncommandfeedback1_22.h27 行定义.

构造及析构函数说明

◆ Llcmotioncommandfeedback122()

apollo::canbus::transit::Llcmotioncommandfeedback122::Llcmotioncommandfeedback122 ( )

在文件 llc_motioncommandfeedback1_22.cc30 行定义.

30{}

成员函数说明

◆ FRIEND_TEST()

apollo::canbus::transit::Llcmotioncommandfeedback122::FRIEND_TEST ( Motioncommandfeedback1_22_test  ,
General   
)

◆ Parse()

void apollo::canbus::transit::Llcmotioncommandfeedback122::Parse ( const std::uint8_t *  bytes,
int32_t  length,
Transit chassis 
) const
override

在文件 llc_motioncommandfeedback1_22.cc33 行定义.

35 {
36 chassis->mutable_llc_motioncommandfeedback1_22()
37 ->set_llc_fbk_steeringanglesetpoint(
38 llc_fbk_steeringanglesetpoint(bytes, length));
39 chassis->mutable_llc_motioncommandfeedback1_22()
40 ->set_llc_fbk_throttlesetpoint(llc_fbk_throttlesetpoint(bytes, length));
41 chassis->mutable_llc_motioncommandfeedback1_22()
42 ->set_llc_fbk_brakepercentsetpoint(
43 llc_fbk_brakepercentsetpoint(bytes, length));
44 chassis->mutable_llc_motioncommandfeedback1_22()
45 ->set_llc_motioncommandfeedback1_count(
46 llc_motioncommandfeedback1_count(bytes, length));
47 chassis->mutable_llc_motioncommandfeedback1_22()
48 ->set_llc_motioncommandfeedback1_check(
49 llc_motioncommandfeedback1_check(bytes, length));
50}

类成员变量说明

◆ ID

const int32_t apollo::canbus::transit::Llcmotioncommandfeedback122::ID = 0x22
static

在文件 llc_motioncommandfeedback1_22.h31 行定义.


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