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

#include <wheelspeed_report_506.h>

类 apollo::canbus::devkit::Wheelspeedreport506 继承关系图:
apollo::canbus::devkit::Wheelspeedreport506 的协作图:

Public 成员函数

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

额外继承的成员函数

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

详细描述

在文件 wheelspeed_report_506.h26 行定义.

构造及析构函数说明

◆ Wheelspeedreport506()

apollo::canbus::devkit::Wheelspeedreport506::Wheelspeedreport506 ( )

在文件 wheelspeed_report_506.cc29 行定义.

29{}

成员函数说明

◆ Parse()

void apollo::canbus::devkit::Wheelspeedreport506::Parse ( const std::uint8_t *  bytes,
int32_t  length,
Devkit chassis 
) const
override

在文件 wheelspeed_report_506.cc32 行定义.

33 {
34 chassis->mutable_wheelspeed_report_506()->set_rr(
35 rr(bytes, length));
36 chassis->mutable_wheelspeed_report_506()->set_rl(
37 rl(bytes, length));
38 chassis->mutable_wheelspeed_report_506()->set_fr(
39 fr(bytes, length));
40 chassis->mutable_wheelspeed_report_506()->set_fl(
41 fl(bytes, length));
42}

类成员变量说明

◆ ID

const int32_t apollo::canbus::devkit::Wheelspeedreport506::ID = 0x506
static

在文件 wheelspeed_report_506.h29 行定义.


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