Apollo
6.0
Open source self driving car software
|
one of the protocol data of lincoln vehicle More...
#include <turnsignal_68.h>
Public Member Functions | |
virtual uint32_t | GetPeriod () const |
get the data period More... | |
virtual int32_t | turn_cmd () const |
get the turn command More... | |
virtual void | UpdateData (uint8_t *data) |
update the data More... | |
virtual void | Reset () |
reset the private variables More... | |
Turnsignal68 * | set_turn_none () |
set no-turn based on pedal command More... | |
Turnsignal68 * | set_turn_left () |
set turn left based on pedal command More... | |
Turnsignal68 * | set_turn_right () |
set turn right based on pedal command 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
|
virtual |
get the data period
Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.
|
virtual |
reset the private variables
Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.
Turnsignal68* apollo::canbus::lincoln::Turnsignal68::set_turn_left | ( | ) |
set turn left based on pedal command
Turnsignal68* apollo::canbus::lincoln::Turnsignal68::set_turn_none | ( | ) |
set no-turn based on pedal command
Turnsignal68* apollo::canbus::lincoln::Turnsignal68::set_turn_right | ( | ) |
set turn right based on pedal command
|
virtual |
get the turn command
|
virtual |
update the data
data | a pointer to the data to be updated |
Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.
|
static |