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

#include <vehicle_speed_rpt_6f.h>

类 apollo::canbus::gem::Vehiclespeedrpt6f 继承关系图:
apollo::canbus::gem::Vehiclespeedrpt6f 的协作图:

Public 成员函数

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

额外继承的成员函数

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

详细描述

在文件 vehicle_speed_rpt_6f.h26 行定义.

构造及析构函数说明

◆ Vehiclespeedrpt6f()

apollo::canbus::gem::Vehiclespeedrpt6f::Vehiclespeedrpt6f ( )

在文件 vehicle_speed_rpt_6f.cc30 行定义.

30{}

成员函数说明

◆ Parse()

void apollo::canbus::gem::Vehiclespeedrpt6f::Parse ( const std::uint8_t *  bytes,
int32_t  length,
Gem chassis 
) const
override

在文件 vehicle_speed_rpt_6f.cc33 行定义.

34 {
35 chassis->mutable_vehicle_speed_rpt_6f()->set_vehicle_speed(
36 vehicle_speed(bytes, length));
37 chassis->mutable_vehicle_speed_rpt_6f()->set_vehicle_speed_valid(
38 vehicle_speed_valid(bytes, length));
39}

类成员变量说明

◆ ID

const int32_t apollo::canbus::gem::Vehiclespeedrpt6f::ID = 0x6F
static

在文件 vehicle_speed_rpt_6f.h29 行定义.


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