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

#include <pc_eps_204.h>

类 apollo::canbus::ge3::Pceps204 继承关系图:
apollo::canbus::ge3::Pceps204 的协作图:

Public 成员函数

 Pceps204 ()
 
uint32_t GetPeriod () const override
 
void UpdateData (uint8_t *data) override
 
void Reset () override
 
Pceps204set_pc_steerspdreq (int pc_steerspdreq)
 
Pceps204set_pc_steerenable (Pc_eps_204::Pc_steerenableType pc_steerenable)
 
Pceps204set_pc_steerangreq (double pc_steerangreq)
 
- Public 成员函数 继承自 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Ge3 >
 ProtocolData ()=default
 construct protocol data.
 
virtual ~ProtocolData ()=default
 destruct protocol data.
 
virtual int32_t GetLength () const
 
virtual void Parse (const uint8_t *bytes, int32_t length, ::apollo::canbus::Ge3 *sensor_data) const
 
virtual void UpdateData_Heartbeat (uint8_t *data)
 

静态 Public 属性

static const int32_t ID = 0x204
 

额外继承的成员函数

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

详细描述

在文件 pc_eps_204.h26 行定义.

构造及析构函数说明

◆ Pceps204()

apollo::canbus::ge3::Pceps204::Pceps204 ( )

在文件 pc_eps_204.cc29 行定义.

29{ Reset(); }

成员函数说明

◆ GetPeriod()

uint32_t apollo::canbus::ge3::Pceps204::GetPeriod ( ) const
overridevirtual

重载 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Ge3 > .

在文件 pc_eps_204.cc31 行定义.

31 {
32 // modify every protocol's period manually
33 static const uint32_t PERIOD = 20 * 1000;
34 return PERIOD;
35}

◆ Reset()

void apollo::canbus::ge3::Pceps204::Reset ( )
overridevirtual

重载 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Ge3 > .

在文件 pc_eps_204.cc43 行定义.

43 {
44 // you should check this manually
45 pc_steerspdreq_ = 0;
46 pc_steerenable_ = Pc_eps_204::PC_STEERENABLE_DISABLE;
47 pc_steerangreq_ = 0.0;
48}

◆ set_pc_steerangreq()

Pceps204 * apollo::canbus::ge3::Pceps204::set_pc_steerangreq ( double  pc_steerangreq)

在文件 pc_eps_204.cc93 行定义.

93 {
94 pc_steerangreq_ = pc_steerangreq;
95 return this;
96}

◆ set_pc_steerenable()

Pceps204 * apollo::canbus::ge3::Pceps204::set_pc_steerenable ( Pc_eps_204::Pc_steerenableType  pc_steerenable)

在文件 pc_eps_204.cc74 行定义.

75 {
76 pc_steerenable_ = pc_steerenable;
77 return this;
78}

◆ set_pc_steerspdreq()

Pceps204 * apollo::canbus::ge3::Pceps204::set_pc_steerspdreq ( int  pc_steerspdreq)

在文件 pc_eps_204.cc50 行定义.

50 {
51 pc_steerspdreq_ = pc_steerspdreq;
52 return this;
53}

◆ UpdateData()

void apollo::canbus::ge3::Pceps204::UpdateData ( uint8_t *  data)
overridevirtual

重载 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Ge3 > .

在文件 pc_eps_204.cc37 行定义.

37 {
38 set_p_pc_steerspdreq(data, pc_steerspdreq_);
39 set_p_pc_steerenable(data, pc_steerenable_);
40 set_p_pc_steerangreq(data, pc_steerangreq_);
41}

类成员变量说明

◆ ID

const int32_t apollo::canbus::ge3::Pceps204::ID = 0x204
static

在文件 pc_eps_204.h29 行定义.


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