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

#include <pc_vcu_205.h>

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

Public 成员函数

 Pcvcu205 ()
 
uint32_t GetPeriod () const override
 
void UpdateData (uint8_t *data) override
 
void Reset () override
 
Pcvcu205set_pc_accpedreq (double pc_accpedreq)
 
Pcvcu205set_pc_accpedenable (Pc_vcu_205::Pc_accpedenableType pc_accpedenable)
 
Pcvcu205set_pc_torqreq (double pc_torqreq)
 
Pcvcu205set_pc_torqenable (Pc_vcu_205::Pc_torqenableType pc_torqenable)
 
Pcvcu205set_pc_gearreq (Pc_vcu_205::Pc_gearreqType pc_gearreq)
 
Pcvcu205set_pc_gearenable (Pc_vcu_205::Pc_gearenableType pc_gearenable)
 
- 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 = 0x205
 

额外继承的成员函数

- 静态 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_vcu_205.h26 行定义.

构造及析构函数说明

◆ Pcvcu205()

apollo::canbus::ge3::Pcvcu205::Pcvcu205 ( )

在文件 pc_vcu_205.cc29 行定义.

29{ Reset(); }

成员函数说明

◆ GetPeriod()

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

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

在文件 pc_vcu_205.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::Pcvcu205::Reset ( )
overridevirtual

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

在文件 pc_vcu_205.cc46 行定义.

46 {
47 // you should check this manually
48 pc_accpedreq_ = 0.0;
49 pc_accpedenable_ = Pc_vcu_205::PC_ACCPEDENABLE_DISABLE;
50 pc_torqreq_ = 0.0;
51 pc_torqenable_ = Pc_vcu_205::PC_TORQENABLE_DISABLE;
53 pc_gearenable_ = Pc_vcu_205::PC_GEARENABLE_DISABLE;
54}

◆ set_pc_accpedenable()

Pcvcu205 * apollo::canbus::ge3::Pcvcu205::set_pc_accpedenable ( Pc_vcu_205::Pc_accpedenableType  pc_accpedenable)

在文件 pc_vcu_205.cc80 行定义.

81 {
82 pc_accpedenable_ = pc_accpedenable;
83 return this;
84}

◆ set_pc_accpedreq()

Pcvcu205 * apollo::canbus::ge3::Pcvcu205::set_pc_accpedreq ( double  pc_accpedreq)

在文件 pc_vcu_205.cc56 行定义.

56 {
57 pc_accpedreq_ = pc_accpedreq;
58 return this;
59}

◆ set_pc_gearenable()

Pcvcu205 * apollo::canbus::ge3::Pcvcu205::set_pc_gearenable ( Pc_vcu_205::Pc_gearenableType  pc_gearenable)

在文件 pc_vcu_205.cc161 行定义.

162 {
163 pc_gearenable_ = pc_gearenable;
164 return this;
165}

◆ set_pc_gearreq()

Pcvcu205 * apollo::canbus::ge3::Pcvcu205::set_pc_gearreq ( Pc_vcu_205::Pc_gearreqType  pc_gearreq)

在文件 pc_vcu_205.cc142 行定义.

142 {
143 pc_gearreq_ = pc_gearreq;
144 return this;
145}

◆ set_pc_torqenable()

Pcvcu205 * apollo::canbus::ge3::Pcvcu205::set_pc_torqenable ( Pc_vcu_205::Pc_torqenableType  pc_torqenable)

在文件 pc_vcu_205.cc123 行定义.

124 {
125 pc_torqenable_ = pc_torqenable;
126 return this;
127}

◆ set_pc_torqreq()

Pcvcu205 * apollo::canbus::ge3::Pcvcu205::set_pc_torqreq ( double  pc_torqreq)

在文件 pc_vcu_205.cc99 行定义.

99 {
100 pc_torqreq_ = pc_torqreq;
101 return this;
102}

◆ UpdateData()

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

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

在文件 pc_vcu_205.cc37 行定义.

37 {
38 set_p_pc_accpedreq(data, pc_accpedreq_);
39 set_p_pc_accpedenable(data, pc_accpedenable_);
40 set_p_pc_torqreq(data, pc_torqreq_);
41 set_p_pc_torqenable(data, pc_torqenable_);
42 set_p_pc_gearreq(data, pc_gearreq_);
43 set_p_pc_gearenable(data, pc_gearenable_);
44}

类成员变量说明

◆ ID

const int32_t apollo::canbus::ge3::Pcvcu205::ID = 0x205
static

在文件 pc_vcu_205.h29 行定义.


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