Apollo 10.0
自动驾驶开放平台
|
one of the protocol data of lincoln vehicle 更多...
#include <steering_65.h>
Public 成员函数 | |
virtual void | Parse (const std::uint8_t *bytes, int32_t length, Lincoln *chassis_detail) const |
virtual void | Parse (const std::uint8_t *bytes, int32_t length, const struct timeval ×tamp, Lincoln *chassis_detail) const |
double | steering_angle (const std::uint8_t *bytes, int32_t length) const |
calculate steering angle based on byte array. | |
double | reported_steering_angle_cmd (const std::uint8_t *bytes, int32_t length) const |
calculate reported steering angle command based on byte array. | |
double | vehicle_speed (const std::uint8_t *bytes, int32_t length) const |
calculate vehicle speed based on byte array. | |
double | epas_torque (const std::uint8_t *bytes, int32_t length) const |
calculate epas torque based on byte array. | |
bool | is_enabled (const std::uint8_t *bytes, int32_t length) const |
check enabled bit based on byte array. | |
bool | is_driver_override (const std::uint8_t *bytes, int32_t length) const |
check driver override bit based on byte array. | |
bool | is_driver_activity (const std::uint8_t *bytes, int32_t length) const |
check driver activity bit based on byte array. | |
bool | is_watchdog_counter_fault (const std::uint8_t *bytes, int32_t length) const |
check watchdog counter fault based on byte array. | |
bool | is_channel_1_fault (const std::uint8_t *bytes, int32_t length) const |
check channel 1 fault bit based on byte array. | |
bool | is_channel_2_fault (const std::uint8_t *bytes, int32_t length) const |
check channel 2 fault bit based on byte array. | |
bool | is_calibration_fault (const std::uint8_t *bytes, int32_t length) const |
check calibration fault bit based on byte array. | |
bool | is_connector_fault (const std::uint8_t *bytes, int32_t length) const |
check connector fault bit 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 = 0x65 |
额外继承的成员函数 | |
![]() | |
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
在文件 steering_65.h 第 42 行定义.
double apollo::canbus::lincoln::Steering65::epas_torque | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate epas torque based on byte array.
config detail: {'name': 'torque', 'offset': 0.0, 'precision': 0.0625, 'len': 8, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 48, 'type': 'double', 'order': 'intel', 'physical_unit': '"Nm"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 117 行定义.
bool apollo::canbus::lincoln::Steering65::is_calibration_fault | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
check calibration fault bit based on byte array.
config detail: {'name': 'fltcal', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 62, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 163 行定义.
bool apollo::canbus::lincoln::Steering65::is_channel_1_fault | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
check channel 1 fault bit based on byte array.
config detail: {'name': 'flt1', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 60, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 151 行定义.
bool apollo::canbus::lincoln::Steering65::is_channel_2_fault | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
check channel 2 fault bit based on byte array.
config detail: {'name': 'flt2', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 61, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 157 行定义.
bool apollo::canbus::lincoln::Steering65::is_connector_fault | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
check connector fault bit based on byte array.
config detail: {'name': 'fltcon', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 63, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 169 行定义.
bool apollo::canbus::lincoln::Steering65::is_driver_activity | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
check driver activity bit based on byte array.
config detail: {'name': 'driver', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 58, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 139 行定义.
bool apollo::canbus::lincoln::Steering65::is_driver_override | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
check driver override bit based on byte array.
config detail: {'name': 'override', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 57, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 132 行定义.
bool apollo::canbus::lincoln::Steering65::is_enabled | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
check enabled bit based on byte array.
config detail: {'name': 'en', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 56, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 127 行定义.
bool apollo::canbus::lincoln::Steering65::is_watchdog_counter_fault | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
check watchdog counter fault based on byte array.
config detail: {'name': 'fltwdc', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 59, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 145 行定义.
|
virtual |
在文件 steering_65.cc 第 70 行定义.
|
virtual |
在文件 steering_65.cc 第 29 行定义.
double apollo::canbus::lincoln::Steering65::reported_steering_angle_cmd | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate reported steering angle command based on byte array.
config detail: {'name': 'cmd', 'offset': 0.0, 'precision': 0.1, 'len': 16, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[-470|470]', 'bit': 16, 'type': 'double', 'order': 'intel', 'physical_unit': '"degrees"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 93 行定义.
double apollo::canbus::lincoln::Steering65::steering_angle | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate steering angle based on byte array.
config detail: {'name': 'angle', 'offset': 0.0, 'precision': 0.1, 'len': 16, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[-470|470]', 'bit': 0, 'type': 'double', 'order': 'intel', 'physical_unit': '"degrees"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 79 行定义.
double apollo::canbus::lincoln::Steering65::vehicle_speed | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate vehicle speed based on byte array.
config detail: {'name': 'speed', 'offset': 0.0, 'precision': 0.01, 'len': 16, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 32, 'type': 'double', 'order': 'intel', 'physical_unit': '"kph"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 steering_65.cc 第 107 行定义.
|
static |
在文件 steering_65.h 第 45 行定义.