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

#include <scu_bcs_3_308.h>

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

Public 成员函数

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

额外继承的成员函数

- 静态 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)
 

详细描述

在文件 scu_bcs_3_308.h26 行定义.

构造及析构函数说明

◆ Scubcs3308()

apollo::canbus::ge3::Scubcs3308::Scubcs3308 ( )

在文件 scu_bcs_3_308.cc28 行定义.

28{}

成员函数说明

◆ Parse()

void apollo::canbus::ge3::Scubcs3308::Parse ( const std::uint8_t *  bytes,
int32_t  length,
Ge3 chassis 
) const
override

在文件 scu_bcs_3_308.cc31 行定义.

32 {
33 chassis->mutable_scu_bcs_3_308()->set_bcs_rrwheelspdvd(
34 bcs_rrwheelspdvd(bytes, length));
35 chassis->mutable_scu_bcs_3_308()->set_bcs_rrwheeldirectionvd(
36 bcs_rrwheeldirectionvd(bytes, length));
37 chassis->mutable_scu_bcs_3_308()->set_bcs_rlwheelspdvd(
38 bcs_rlwheelspdvd(bytes, length));
39 chassis->mutable_scu_bcs_3_308()->set_bcs_rlwheeldirectionvd(
40 bcs_rlwheeldirectionvd(bytes, length));
41 chassis->mutable_scu_bcs_3_308()->set_bcs_frwheelspdvd(
42 bcs_frwheelspdvd(bytes, length));
43 chassis->mutable_scu_bcs_3_308()->set_bcs_frwheeldirectionvd(
44 bcs_frwheeldirectionvd(bytes, length));
45 chassis->mutable_scu_bcs_3_308()->set_bcs_flwheelspdvd(
46 bcs_flwheelspdvd(bytes, length));
47 chassis->mutable_scu_bcs_3_308()->set_bcs_flwheeldirectionvd(
48 bcs_flwheeldirectionvd(bytes, length));
49 chassis->mutable_scu_bcs_3_308()->set_bcs_rrwheelspd(
50 bcs_rrwheelspd(bytes, length));
51 chassis->mutable_scu_bcs_3_308()->set_bcs_rrwheeldirection(
52 bcs_rrwheeldirection(bytes, length));
53 chassis->mutable_scu_bcs_3_308()->set_bcs_rlwheelspd(
54 bcs_rlwheelspd(bytes, length));
55 chassis->mutable_scu_bcs_3_308()->set_bcs_rlwheeldirection(
56 bcs_rlwheeldirection(bytes, length));
57 chassis->mutable_scu_bcs_3_308()->set_bcs_frwheelspd(
58 bcs_frwheelspd(bytes, length));
59 chassis->mutable_scu_bcs_3_308()->set_bcs_frwheeldirection(
60 bcs_frwheeldirection(bytes, length));
61 chassis->mutable_scu_bcs_3_308()->set_bcs_flwheelspd(
62 bcs_flwheelspd(bytes, length));
63 chassis->mutable_scu_bcs_3_308()->set_bcs_flwheeldirection(
64 bcs_flwheeldirection(bytes, length));
65}

类成员变量说明

◆ ID

const int32_t apollo::canbus::ge3::Scubcs3308::ID = 0x308
static

在文件 scu_bcs_3_308.h29 行定义.


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