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

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

#include <gps_6e.h>

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

Public Member Functions

virtual void Parse (const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis_detail) const
 
int32_t year (const std::uint8_t *bytes, int32_t length) const
 get year from byte array config detail: {'name': 'year', 'offset': 0.0, 'precision': 1.0, 'len': 7, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|99]', 'bit': 0, 'type': 'int', 'order': 'intel', 'physical_unit': '"years"'} More...
 
int32_t month (const std::uint8_t *bytes, int32_t length) const
 get month from byte array config detail: {'name': 'month', 'offset': 0.0, 'precision': 1.0, 'len': 4, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[1|12]', 'bit': 8, 'type': 'int', 'order': 'intel', 'physical_unit': '"months"'} More...
 
int32_t day (const std::uint8_t *bytes, int32_t length) const
 get day from byte array config detail: {'name': 'day', 'offset': 0.0, 'precision': 1.0, 'len': 5, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[1|31]', 'bit': 16, 'type': 'int', 'order': 'intel', 'physical_unit': '"days"'} More...
 
int32_t hours (const std::uint8_t *bytes, int32_t length) const
 get hours from byte array config detail: {'name': 'hours', 'offset': 0.0, 'precision': 1.0, 'len': 5, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|23]', 'bit': 24, 'type': 'int', 'order': 'intel', 'physical_unit': '"hours"'} More...
 
int32_t minutes (const std::uint8_t *bytes, int32_t length) const
 get minutes from byte array config detail: {'name': 'minutes', 'offset': 0.0, 'precision': 1.0, 'len': 6, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|59]', 'bit': 32, 'type': 'int', 'order': 'intel', 'physical_unit': '"minutes"'} More...
 
int32_t seconds (const std::uint8_t *bytes, int32_t length) const
 get year from byte array config detail: {'name': 'seconds', 'offset': 0.0, 'precision': 1.0, 'len': 6, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|59]', 'bit': 40, 'type': 'int', 'order': 'intel', 'physical_unit': '"seconds"'} More...
 
double compass_direction (const std::uint8_t *bytes, int32_t length) const
 get compass direction from byte array config detail: {'name': 'compass', 'offset': 0.0, 'precision': 45.0, 'len': 4, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|315]', 'bit': 48, 'type': 'double', 'order': 'intel', 'physical_unit': '"degrees"'} More...
 
double pdop (const std::uint8_t *bytes, int32_t length) const
 get pdop from byte array config detail: {'name': 'pdop', 'offset': 0.0, 'precision': 0.2, 'len': 5, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 56, 'type': 'double', 'order': 'intel', 'physical_unit': '""'} More...
 
bool is_gps_fault (const std::uint8_t *bytes, int32_t length) const
 check gps fault from byte array config detail: {'name': 'fltgps', '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_inferred_position (const std::uint8_t *bytes, int32_t length) const
 get inferred position from byte array config detail: {'name': 'inf', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 62, '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

◆ compass_direction()

double apollo::canbus::lincoln::Gps6e::compass_direction ( const std::uint8_t *  bytes,
int32_t  length 
) const

get compass direction from byte array config detail: {'name': 'compass', 'offset': 0.0, 'precision': 45.0, 'len': 4, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|315]', 'bit': 48, 'type': 'double', 'order': 'intel', 'physical_unit': '"degrees"'}

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

◆ day()

int32_t apollo::canbus::lincoln::Gps6e::day ( const std::uint8_t *  bytes,
int32_t  length 
) const

get day from byte array config detail: {'name': 'day', 'offset': 0.0, 'precision': 1.0, 'len': 5, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[1|31]', 'bit': 16, 'type': 'int', 'order': 'intel', 'physical_unit': '"days"'}

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

◆ hours()

int32_t apollo::canbus::lincoln::Gps6e::hours ( const std::uint8_t *  bytes,
int32_t  length 
) const

get hours from byte array config detail: {'name': 'hours', 'offset': 0.0, 'precision': 1.0, 'len': 5, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|23]', 'bit': 24, 'type': 'int', 'order': 'intel', 'physical_unit': '"hours"'}

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

◆ is_gps_fault()

bool apollo::canbus::lincoln::Gps6e::is_gps_fault ( const std::uint8_t *  bytes,
int32_t  length 
) const

check gps fault from byte array config detail: {'name': 'fltgps', '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 value of gps fault

◆ is_inferred_position()

bool apollo::canbus::lincoln::Gps6e::is_inferred_position ( const std::uint8_t *  bytes,
int32_t  length 
) const

get inferred position from byte array config detail: {'name': 'inf', 'offset': 0.0, 'precision': 1.0, 'len': 1, 'f_type': 'valid', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 62, 'type': 'bool', 'order': 'intel', 'physical_unit': '""'}

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

◆ minutes()

int32_t apollo::canbus::lincoln::Gps6e::minutes ( const std::uint8_t *  bytes,
int32_t  length 
) const

get minutes from byte array config detail: {'name': 'minutes', 'offset': 0.0, 'precision': 1.0, 'len': 6, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|59]', 'bit': 32, 'type': 'int', 'order': 'intel', 'physical_unit': '"minutes"'}

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

◆ month()

int32_t apollo::canbus::lincoln::Gps6e::month ( const std::uint8_t *  bytes,
int32_t  length 
) const

get month from byte array config detail: {'name': 'month', 'offset': 0.0, 'precision': 1.0, 'len': 4, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[1|12]', 'bit': 8, 'type': 'int', 'order': 'intel', 'physical_unit': '"months"'}

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

◆ Parse()

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

◆ pdop()

double apollo::canbus::lincoln::Gps6e::pdop ( const std::uint8_t *  bytes,
int32_t  length 
) const

get pdop from byte array config detail: {'name': 'pdop', 'offset': 0.0, 'precision': 0.2, 'len': 5, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 56, 'type': 'double', 'order': 'intel', 'physical_unit': '""'}

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

◆ seconds()

int32_t apollo::canbus::lincoln::Gps6e::seconds ( const std::uint8_t *  bytes,
int32_t  length 
) const

get year from byte array config detail: {'name': 'seconds', 'offset': 0.0, 'precision': 1.0, 'len': 6, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|59]', 'bit': 40, 'type': 'int', 'order': 'intel', 'physical_unit': '"seconds"'}

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

◆ year()

int32_t apollo::canbus::lincoln::Gps6e::year ( const std::uint8_t *  bytes,
int32_t  length 
) const

get year from byte array config detail: {'name': 'year', 'offset': 0.0, 'precision': 1.0, 'len': 7, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|99]', 'bit': 0, 'type': 'int', 'order': 'intel', 'physical_unit': '"years"'}

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

Member Data Documentation

◆ ID

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

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