|
Apollo 11.0
自动驾驶开放平台
|
one of the protocol data of lincoln vehicle 更多...
#include <gyro_6c.h>
Public 成员函数 | |
| virtual void | Parse (const std::uint8_t *bytes, int32_t length, Lincoln *chassis_detail) const |
| double | roll_rate (const std::uint8_t *bytes, int32_t length) const |
| calculate the roll rate based on byte array. | |
| double | yaw_rate (const std::uint8_t *bytes, int32_t length) const |
| calculate longitudinal_acceleration based on byte array. | |
Public 成员函数 继承自 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Lincoln > | |
| 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 = 0x6C |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Lincoln > | |
| 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) |
|
virtual |
在文件 gyro_6c.cc 第 29 行定义.
| double apollo::canbus::lincoln::Gyro6c::roll_rate | ( | const std::uint8_t * | bytes, |
| int32_t | length | ||
| ) | const |
calculate the roll rate based on byte array.
config detail: {'name': 'roll', 'offset': 0.0, 'precision': 0.0002, 'len': 16, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 0, 'type': 'double', 'order': 'intel', 'physical_unit': '"rad/s"'}
| bytes | a pointer to the byte array |
| length | the length of the byte array |
在文件 gyro_6c.cc 第 38 行定义.
| double apollo::canbus::lincoln::Gyro6c::yaw_rate | ( | const std::uint8_t * | bytes, |
| int32_t | length | ||
| ) | const |
calculate longitudinal_acceleration based on byte array.
config detail: {'name': 'yaw', 'offset': 0.0, 'precision': 0.0002, 'len': 16, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 16, 'type': 'double', 'order': 'intel', 'physical_unit': '"rad/s"'}
| bytes | a pointer to the byte array |
| length | the length of the byte array |
在文件 gyro_6c.cc 第 50 行定义.