Apollo  6.0
Open source self driving car software
Public Member Functions | Static Public Attributes | List of all members
apollo::canbus::lincoln::Brake60 Class Reference

one of the protocol data of lincoln vehicle More...

#include <brake_60.h>

Inheritance diagram for apollo::canbus::lincoln::Brake60:
Inheritance graph
Collaboration diagram for apollo::canbus::lincoln::Brake60:
Collaboration graph

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...
 
Brake60set_pedal (double pcmd)
 set pedal based on pedal command More...
 
Brake60set_enable ()
 set pedal_enable_ to true More...
 
Brake60set_disable ()
 set pedal_enable_ to false More...
 
- Public Member Functions inherited from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >
 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 Public Member Functions inherited from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >
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)
 

Detailed Description

one of the protocol data of lincoln vehicle

Member Function Documentation

◆ GetPeriod()

uint32_t apollo::canbus::lincoln::Brake60::GetPeriod ( ) const
overridevirtual

get the data period

Returns
the value of data period

Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.

◆ Reset()

void apollo::canbus::lincoln::Brake60::Reset ( )
overridevirtual

reset the private variables

Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.

◆ set_disable()

Brake60* apollo::canbus::lincoln::Brake60::set_disable ( )

set pedal_enable_ to false

Returns
a this pointer to the instance itself

◆ set_enable()

Brake60* apollo::canbus::lincoln::Brake60::set_enable ( )

set pedal_enable_ to true

Returns
a this pointer to the instance itself

◆ set_pedal()

Brake60* apollo::canbus::lincoln::Brake60::set_pedal ( double  pcmd)

set pedal based on pedal command

Returns
a this pointer to the instance itself

◆ UpdateData()

void apollo::canbus::lincoln::Brake60::UpdateData ( uint8_t *  data)
overridevirtual

update the data

Parameters
dataa pointer to the data to be updated

Reimplemented from apollo::drivers::canbus::ProtocolData< ::apollo::canbus::ChassisDetail >.

Member Data Documentation

◆ ID

const int32_t apollo::canbus::lincoln::Brake60::ID
static

The documentation for this class was generated from the following file: