Apollo 10.0
自动驾驶开放平台
|
one of the protocol data of lincoln vehicle 更多...
#include <throttleinfo_75.h>
Public 成员函数 | |
virtual void | Parse (const std::uint8_t *bytes, int32_t length, Lincoln *chassis_detail) const |
double | engine_rpm (const std::uint8_t *bytes, int32_t length) const |
calculate engine rpm based on byte array. | |
double | acc_pedal_percent (const std::uint8_t *bytes, int32_t length) const |
calculate acc pedal percent based on byte array. | |
double | acc_pedal_rate (const std::uint8_t *bytes, int32_t length) const |
calculate acc pedal rate based on byte array. | |
![]() | |
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::Lincoln *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 = 0x75 |
额外继承的成员函数 | |
![]() | |
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) |
one of the protocol data of lincoln vehicle
在文件 throttleinfo_75.h 第 40 行定义.
double apollo::canbus::lincoln::Throttleinfo75::acc_pedal_percent | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate acc pedal percent based on byte array.
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 throttleinfo_75.cc 第 48 行定义.
double apollo::canbus::lincoln::Throttleinfo75::acc_pedal_rate | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate acc pedal rate based on byte array.
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 throttleinfo_75.cc 第 58 行定义.
double apollo::canbus::lincoln::Throttleinfo75::engine_rpm | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate engine rpm based on byte array.
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 throttleinfo_75.cc 第 38 行定义.
|
virtual |
在文件 throttleinfo_75.cc 第 29 行定义.
|
static |
在文件 throttleinfo_75.h 第 43 行定义.