Apollo
6.0
Open source self driving car software
|
one of the protocol data of lincoln vehicle More...
#include <brake_60.h>
Public Member Functions | |
uint32_t | GetPeriod () const override |
get the data period More... | |
void | UpdateData (uint8_t *data) override |
update the data More... | |
void | Reset () override |
reset the private variables More... | |
Brake60 * | set_pedal (double pcmd) |
set pedal based on pedal command More... | |
Brake60 * | set_enable () |
set pedal_enable_ to true More... | |
Brake60 * | set_disable () |
set pedal_enable_ to false More... | |
![]() | |
ProtocolData ()=default | |
construct protocol data. More... | |
virtual | ~ProtocolData ()=default |
destruct protocol data. More... | |
virtual int32_t | GetLength () const |
virtual void | Parse (const uint8_t *bytes, int32_t length, ::apollo::canbus::ChassisDetail *sensor_data) const |
Static Public Attributes | |
static const int32_t | ID |
Additional Inherited Members | |
![]() | |
static std::uint8_t | CalculateCheckSum (const uint8_t *input, const uint32_t length) |
static function, used to calculate the checksum of input array. More... | |
static T | BoundedValue (T lower, T upper, T val) |
one of the protocol data of lincoln vehicle
|
overridevirtual |
get the data period
Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.
|
overridevirtual |
reset the private variables
Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.
Brake60* apollo::canbus::lincoln::Brake60::set_disable | ( | ) |
set pedal_enable_ to false
Brake60* apollo::canbus::lincoln::Brake60::set_enable | ( | ) |
set pedal_enable_ to true
Brake60* apollo::canbus::lincoln::Brake60::set_pedal | ( | double | pcmd | ) |
set pedal based on pedal command
|
overridevirtual |
update the data
data | a pointer to the data to be updated |
Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.
|
static |