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

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

#include <throttle_63.h>

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

Public Member Functions

virtual void Parse (const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis_detail) const
 
double 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': '"%"'} More...
 
double 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': '"%"'} More...
 
double 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': '"%"'} More...
 
int32_t 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': '""'} More...
 
bool 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': '""'} More...
 
bool 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': '""'} More...
 
bool 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': '""'} More...
 
bool 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': '""'} More...
 
bool 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': '""'} More...
 
bool 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': '""'} More...
 
bool 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': '""'} 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 uint32_t GetPeriod () const
 
virtual int32_t GetLength () const
 
virtual void Parse (const uint8_t *bytes, int32_t length, ::apollo::canbus::ChassisDetail *sensor_data) const
 
virtual void UpdateData (uint8_t *data)
 
virtual void Reset ()
 

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

◆ is_channel_1_fault()

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': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of channel 1 fault bit

◆ is_channel_2_fault()

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': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of channel 2 fault bit

◆ is_connector_fault()

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': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of connector fault bit

◆ is_driver_activity()

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': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of driver activity

◆ is_driver_override()

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': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of driver override

◆ is_enabled()

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': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of enabled bit

◆ is_watchdog_counter_fault()

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': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of watchdog counter fault bit

◆ Parse()

virtual void apollo::canbus::lincoln::Throttle63::Parse ( const std::uint8_t *  bytes,
int32_t  length,
ChassisDetail *  chassis_detail 
) const
virtual

◆ pedal_cmd()

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': '"%"'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the value of pedal command

◆ pedal_input()

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': '"%"'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the value of byte input

◆ pedal_output()

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': '"%"'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the value of pedal output

◆ watchdog_counter_source()

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': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the value of watchdog counter source

Member Data Documentation

◆ ID

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

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