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

#include <steering_motor_rpt_3_406.h>

类 apollo::canbus::lexus::Steeringmotorrpt3406 继承关系图:
apollo::canbus::lexus::Steeringmotorrpt3406 的协作图:

Public 成员函数

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

额外继承的成员函数

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

详细描述

在文件 steering_motor_rpt_3_406.h26 行定义.

构造及析构函数说明

◆ Steeringmotorrpt3406()

apollo::canbus::lexus::Steeringmotorrpt3406::Steeringmotorrpt3406 ( )

在文件 steering_motor_rpt_3_406.cc30 行定义.

30{}

成员函数说明

◆ Parse()

void apollo::canbus::lexus::Steeringmotorrpt3406::Parse ( const std::uint8_t *  bytes,
int32_t  length,
Lexus chassis 
) const
override

在文件 steering_motor_rpt_3_406.cc33 行定义.

34 {
35 chassis->mutable_steering_motor_rpt_3_406()->set_torque_output(
36 torque_output(bytes, length));
37 chassis->mutable_steering_motor_rpt_3_406()->set_torque_input(
38 torque_input(bytes, length));
39}

类成员变量说明

◆ ID

const int32_t apollo::canbus::lexus::Steeringmotorrpt3406::ID = 0x406
static

在文件 steering_motor_rpt_3_406.h29 行定义.


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