Apollo 10.0
自动驾驶开放平台
|
one of the protocol data of lincoln vehicle 更多...
#include <brake_60.h>
Public 成员函数 | |
uint32_t | GetPeriod () const override |
get the data period | |
void | UpdateData (uint8_t *data) override |
update the data | |
void | Reset () override |
reset the private variables | |
Brake60 * | set_pedal (double pcmd) |
set pedal based on pedal command | |
Brake60 * | set_enable () |
set pedal_enable_ to true | |
Brake60 * | set_disable () |
set pedal_enable_ to false | |
![]() | |
ProtocolData ()=default | |
construct protocol data. | |
virtual | ~ProtocolData ()=default |
destruct protocol data. | |
virtual int32_t | GetLength () const |
virtual void | Parse (const uint8_t *bytes, int32_t length, ::apollo::canbus::Lincoln *sensor_data) const |
virtual void | UpdateData_Heartbeat (uint8_t *data) |
静态 Public 属性 | |
static const int32_t | ID = 0x60 |
额外继承的成员函数 | |
![]() | |
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
在文件 brake_60.h 第 40 行定义.
|
overridevirtual |
get the data period
重载 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Lincoln > .
在文件 brake_60.cc 第 30 行定义.
|
overridevirtual |
reset the private variables
重载 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Lincoln > .
在文件 brake_60.cc 第 43 行定义.
Brake60 * apollo::canbus::lincoln::Brake60::set_disable | ( | ) |
set pedal_enable_ to false
在文件 brake_60.cc 第 77 行定义.
Brake60 * apollo::canbus::lincoln::Brake60::set_enable | ( | ) |
set pedal_enable_ to true
在文件 brake_60.cc 第 72 行定义.
Brake60 * apollo::canbus::lincoln::Brake60::set_pedal | ( | double | pcmd | ) |
set pedal based on pedal command
在文件 brake_60.cc 第 52 行定义.
|
overridevirtual |
update the data
data | a pointer to the data to be updated |
重载 apollo::drivers::canbus::ProtocolData< ::apollo::canbus::Lincoln > .
在文件 brake_60.cc 第 35 行定义.
|
static |
在文件 brake_60.h 第 43 行定义.