Apollo 10.0
自动驾驶开放平台
|
one of the protocol data of lincoln vehicle 更多...
#include <throttle_63.h>
Public 成员函数 | |
virtual void | Parse (const std::uint8_t *bytes, int32_t length, Lincoln *chassis_detail) const |
double | pedal_input (const std::uint8_t *bytes, int32_t length) const |
calculate pedal input based on byte array. | |
double | pedal_cmd (const std::uint8_t *bytes, int32_t length) const |
calculate pedal command based on byte array. | |
double | pedal_output (const std::uint8_t *bytes, int32_t length) const |
calculate pedal output based on byte array. | |
int32_t | watchdog_counter_source (const std::uint8_t *bytes, int32_t length) const |
calculate watchdog counter source 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 bit 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_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 = 0x63 |
额外继承的成员函数 | |
![]() | |
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
在文件 throttle_63.h 第 40 行定义.
bool apollo::canbus::lincoln::Throttle63::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 |
在文件 throttle_63.cc 第 126 行定义.
bool apollo::canbus::lincoln::Throttle63::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 |
在文件 throttle_63.cc 第 132 行定义.
bool apollo::canbus::lincoln::Throttle63::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 |
在文件 throttle_63.cc 第 138 行定义.
bool apollo::canbus::lincoln::Throttle63::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 |
在文件 throttle_63.cc 第 114 行定义.
bool apollo::canbus::lincoln::Throttle63::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 |
在文件 throttle_63.cc 第 108 行定义.
bool apollo::canbus::lincoln::Throttle63::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 |
在文件 throttle_63.cc 第 103 行定义.
bool apollo::canbus::lincoln::Throttle63::is_watchdog_counter_fault | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
check watchdog counter fault bit 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 |
在文件 throttle_63.cc 第 120 行定义.
|
virtual |
在文件 throttle_63.cc 第 29 行定义.
double apollo::canbus::lincoln::Throttle63::pedal_cmd | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate pedal command based on byte array.
config detail: {'name': 'pc', 'offset': 0.0, 'precision': 1.52590218966964e-05, 'len': 16, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|1]', 'bit': 16, 'type': 'double', 'order': 'intel', 'physical_unit': '"%"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 throttle_63.cc 第 69 行定义.
double apollo::canbus::lincoln::Throttle63::pedal_input | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate pedal input based on byte array.
config detail: {'name': 'pi', 'offset': 0.0, 'precision': 1.52590218966964e-05, 'len': 16, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|1]', 'bit': 0, 'type': 'double', 'order': 'intel', 'physical_unit': '"%"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 throttle_63.cc 第 55 行定义.
double apollo::canbus::lincoln::Throttle63::pedal_output | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate pedal output based on byte array.
config detail: {'name': 'po', 'offset': 0.0, 'precision': 1.52590218966964e-05, 'len': 16, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|1]', 'bit': 32, 'type': 'double', 'order': 'intel', 'physical_unit': '"%"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 throttle_63.cc 第 82 行定义.
int32_t apollo::canbus::lincoln::Throttle63::watchdog_counter_source | ( | const std::uint8_t * | bytes, |
int32_t | length | ||
) | const |
calculate watchdog counter source based on byte array.
config detail: {'name': 'wdcsrc', 'offset': 0.0, 'precision': 1.0, 'len': 4, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 52, 'type': 'int', 'order': 'intel', 'physical_unit': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
在文件 throttle_63.cc 第 96 行定义.
|
static |
在文件 throttle_63.h 第 43 行定义.