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

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

#include <misc_69.h>

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

Public Member Functions

virtual void Parse (const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis_detail) const
 
int32_t turn_signal_status (const std::uint8_t *bytes, int32_t length) const
 calculate the turn signal status based on byte array. config detail: {'name': 'trnstat', 'offset': 0.0, 'precision': 1.0, 'len': 2, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 0, 'type': 'int', 'order': 'intel', 'physical_unit': '""'} More...
 
int32_t high_beam_status (const std::uint8_t *bytes, int32_t length) const
 calculate the high beam status based on byte array. config detail: {'name': 'hibeam', 'offset': 0.0, 'precision': 1.0, 'len': 2, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 2, 'type': 'int', 'order': 'intel', 'physical_unit': '""'} More...
 
int32_t wiper_status (const std::uint8_t *bytes, int32_t length) const
 calculate the wiper status based on byte array. config detail: {'name': 'wiper', 'offset': 0.0, 'precision': 1.0, 'len': 4, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 4, 'type': 'int', 'order': 'intel', 'physical_unit': '""'} More...
 
int32_t ambient_light_status (const std::uint8_t *bytes, int32_t length) const
 calculate the ambient light status based on byte array. config detail: {'name': 'ambient', 'offset': 0.0, 'precision': 1.0, 'len': 3, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 8, 'type': 'int', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_acc_on_pressed (const std::uint8_t *bytes, int32_t length) const
 check acc on pressed bit based on byte array. config detail: {'name': 'on', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 11, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_acc_off_pressed (const std::uint8_t *bytes, int32_t length) const
 check acc off pressed bit based on byte array. config detail: {'name': 'off', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 12, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_acc_resume_pressed (const std::uint8_t *bytes, int32_t length) const
 check acc resume pressed bit based on byte array. config detail: {'name': 'res', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 13, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_acc_cancel_pressed (const std::uint8_t *bytes, int32_t length) const
 check acc cancel pressed bit based on byte array. config detail: {'name': 'cncl', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 14, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_acc_on_or_off_pressed (const std::uint8_t *bytes, int32_t length) const
 check acc on or off pressed bit based on byte array. config detail: {'name': 'onoff', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 16, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_acc_resume_or_cancel_pressed (const std::uint8_t *bytes, int32_t length) const
 check acc resume or cancel pressed bit based on byte array. config detail: {'name': 'rescncl', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 17, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_acc_increment_set_speed_pressed (const std::uint8_t *bytes, int32_t length) const
 check the acc increment set speed pressed bit based on byte array. config detail: {'name': 'sinc', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 18, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_acc_decrement_set_speed_pressed (const std::uint8_t *bytes, int32_t length) const
 check the acc decrement set speed pressed bit based on byte array. config detail: {'name': 'sdec', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 19, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_acc_increment_following_gap_pressed (const std::uint8_t *bytes, int32_t length) const
 check the acc increment following gap pressed bit based on byte array. config detail: {'name': 'ginc', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 20, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_acc_decrement_following_gap_pressed (const std::uint8_t *bytes, int32_t length) const
 check the acc decrement following gap pressed bit based on byte array. config detail: {'name': 'gdec', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 21, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_lka_on_or_off_pressed (const std::uint8_t *bytes, int32_t length) const
 check the lka on or off pressed bit based on byte array. config detail: {'name': 'lkaen', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 22, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_canbus_fault (const std::uint8_t *bytes, int32_t length) const
 check the canbus fault bit based on byte array. config detail: {'name': 'fltbus', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 23, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_driver_door_open (const std::uint8_t *bytes, int32_t length) const
 check the driver door open bit based on byte array. config detail: {'name': 'doord', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 24, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_passenger_door_open (const std::uint8_t *bytes, int32_t length) const
 check the passenger door open bit based on byte array. config detail: {'name': 'doorp', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 25, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_rear_left_door_open (const std::uint8_t *bytes, int32_t length) const
 check the passenger door open bit based on byte array. config detail: {'name': 'doorl', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 26, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_rear_right_door_open (const std::uint8_t *bytes, int32_t length) const
 check the rear right door open bit based on byte array. config detail: {'name': 'doorr', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 27, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_hood_open (const std::uint8_t *bytes, int32_t length) const
 check the hood open bit based on byte array. config detail: {'name': 'hood', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 28, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_trunk_open (const std::uint8_t *bytes, int32_t length) const
 check the trunk open bit based on byte array. config detail: {'name': 'trunk', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 29, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_passenger_detected (const std::uint8_t *bytes, int32_t length) const
 check the passenger detected bit based on byte array. config detail: {'name': 'pdect', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 30, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_passenger_airbag_enabled (const std::uint8_t *bytes, int32_t length) const
 check the passenger airbag enabled bit based on byte array. config detail: {'name': 'pabag', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 31, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_driver_belt_buckled (const std::uint8_t *bytes, int32_t length) const
 check the driver belt buckled bit based on byte array. config detail: {'name': 'beltd', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 32, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_passenger_belt_buckled (const std::uint8_t *bytes, int32_t length) const
 check the passenger belt buckled bit based on byte array. config detail: {'name': 'beltp', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 33, '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

◆ ambient_light_status()

int32_t apollo::canbus::lincoln::Misc69::ambient_light_status ( const std::uint8_t *  bytes,
int32_t  length 
) const

calculate the ambient light status based on byte array. config detail: {'name': 'ambient', 'offset': 0.0, 'precision': 1.0, 'len': 3, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 8, 'type': 'int', 'order': 'intel', 'physical_unit': '""'}

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

◆ high_beam_status()

int32_t apollo::canbus::lincoln::Misc69::high_beam_status ( const std::uint8_t *  bytes,
int32_t  length 
) const

calculate the high beam status based on byte array. config detail: {'name': 'hibeam', 'offset': 0.0, 'precision': 1.0, 'len': 2, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 2, 'type': 'int', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the value of high beam status

◆ is_acc_cancel_pressed()

bool apollo::canbus::lincoln::Misc69::is_acc_cancel_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check acc cancel pressed bit based on byte array. config detail: {'name': 'cncl', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 14, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of acc cancel pressed bit

◆ is_acc_decrement_following_gap_pressed()

bool apollo::canbus::lincoln::Misc69::is_acc_decrement_following_gap_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the acc decrement following gap pressed bit based on byte array. config detail: {'name': 'gdec', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 21, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of acc decrement following gap pressed bit

◆ is_acc_decrement_set_speed_pressed()

bool apollo::canbus::lincoln::Misc69::is_acc_decrement_set_speed_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the acc decrement set speed pressed bit based on byte array. config detail: {'name': 'sdec', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 19, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of acc decrement set speed pressed bit

◆ is_acc_increment_following_gap_pressed()

bool apollo::canbus::lincoln::Misc69::is_acc_increment_following_gap_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the acc increment following gap pressed bit based on byte array. config detail: {'name': 'ginc', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 20, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of acc increment following gap pressed bit

◆ is_acc_increment_set_speed_pressed()

bool apollo::canbus::lincoln::Misc69::is_acc_increment_set_speed_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the acc increment set speed pressed bit based on byte array. config detail: {'name': 'sinc', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 18, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of acc increment set speed pressed bit

◆ is_acc_off_pressed()

bool apollo::canbus::lincoln::Misc69::is_acc_off_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check acc off pressed bit based on byte array. config detail: {'name': 'off', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 12, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the value of acc off pressed bit

◆ is_acc_on_or_off_pressed()

bool apollo::canbus::lincoln::Misc69::is_acc_on_or_off_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check acc on or off pressed bit based on byte array. config detail: {'name': 'onoff', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 16, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of acc on or off pressed bit

◆ is_acc_on_pressed()

bool apollo::canbus::lincoln::Misc69::is_acc_on_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check acc on pressed bit based on byte array. config detail: {'name': 'on', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 11, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of acc on pressed bit

◆ is_acc_resume_or_cancel_pressed()

bool apollo::canbus::lincoln::Misc69::is_acc_resume_or_cancel_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check acc resume or cancel pressed bit based on byte array. config detail: {'name': 'rescncl', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 17, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of acc resume or cancel pressed bit

◆ is_acc_resume_pressed()

bool apollo::canbus::lincoln::Misc69::is_acc_resume_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check acc resume pressed bit based on byte array. config detail: {'name': 'res', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 13, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of acc resume pressed bit

◆ is_canbus_fault()

bool apollo::canbus::lincoln::Misc69::is_canbus_fault ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the canbus fault bit based on byte array. config detail: {'name': 'fltbus', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 23, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

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

◆ is_driver_belt_buckled()

bool apollo::canbus::lincoln::Misc69::is_driver_belt_buckled ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the driver belt buckled bit based on byte array. config detail: {'name': 'beltd', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 32, '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 belt buckled bit

◆ is_driver_door_open()

bool apollo::canbus::lincoln::Misc69::is_driver_door_open ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the driver door open bit based on byte array. config detail: {'name': 'doord', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 24, '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 door open bit

◆ is_hood_open()

bool apollo::canbus::lincoln::Misc69::is_hood_open ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the hood open bit based on byte array. config detail: {'name': 'hood', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 28, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

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

◆ is_lka_on_or_off_pressed()

bool apollo::canbus::lincoln::Misc69::is_lka_on_or_off_pressed ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the lka on or off pressed bit based on byte array. config detail: {'name': 'lkaen', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 22, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of lka on or off pressed bit

◆ is_passenger_airbag_enabled()

bool apollo::canbus::lincoln::Misc69::is_passenger_airbag_enabled ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the passenger airbag enabled bit based on byte array. config detail: {'name': 'pabag', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 31, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

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

◆ is_passenger_belt_buckled()

bool apollo::canbus::lincoln::Misc69::is_passenger_belt_buckled ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the passenger belt buckled bit based on byte array. config detail: {'name': 'beltp', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 33, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of passenger belt buckled bit

◆ is_passenger_detected()

bool apollo::canbus::lincoln::Misc69::is_passenger_detected ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the passenger detected bit based on byte array. config detail: {'name': 'pdect', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 30, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

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

◆ is_passenger_door_open()

bool apollo::canbus::lincoln::Misc69::is_passenger_door_open ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the passenger door open bit based on byte array. config detail: {'name': 'doorp', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 25, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of passenger door open bit

◆ is_rear_left_door_open()

bool apollo::canbus::lincoln::Misc69::is_rear_left_door_open ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the passenger door open bit based on byte array. config detail: {'name': 'doorl', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 26, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of rear left door open bit

◆ is_rear_right_door_open()

bool apollo::canbus::lincoln::Misc69::is_rear_right_door_open ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the rear right door open bit based on byte array. config detail: {'name': 'doorr', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 27, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the boolean value of rear right door open bit

◆ is_trunk_open()

bool apollo::canbus::lincoln::Misc69::is_trunk_open ( const std::uint8_t *  bytes,
int32_t  length 
) const

check the trunk open bit based on byte array. config detail: {'name': 'trunk', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 29, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

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

◆ Parse()

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

◆ turn_signal_status()

int32_t apollo::canbus::lincoln::Misc69::turn_signal_status ( const std::uint8_t *  bytes,
int32_t  length 
) const

calculate the turn signal status based on byte array. config detail: {'name': 'trnstat', 'offset': 0.0, 'precision': 1.0, 'len': 2, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 0, 'type': 'int', 'order': 'intel', 'physical_unit': '""'}

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the value of turn signal status

◆ wiper_status()

int32_t apollo::canbus::lincoln::Misc69::wiper_status ( const std::uint8_t *  bytes,
int32_t  length 
) const

calculate the wiper status based on byte array. config detail: {'name': 'wiper', 'offset': 0.0, 'precision': 1.0, 'len': 4, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 4, 'type': 'int', 'order': 'intel', 'physical_unit': '""'}

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

Member Data Documentation

◆ ID

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

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