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

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

#include <gps_6d.h>

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

Public Member Functions

virtual void Parse (const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis_detail) const
 
double latitude (const std::uint8_t *bytes, int32_t length) const
 get latitude from byte array config detail: {'name': 'latitude', 'offset': 0.0, 'precision': 3.3333333e-07, 'len': 31, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 0, 'type': 'double', 'order': 'intel', 'physical_unit': '"degrees"'} More...
 
double longitude (const std::uint8_t *bytes, int32_t length) const
 get longitude from byte array config detail: {'name': 'longitude', 'offset': 0.0, 'precision': 3.3333333e-07, 'len': 31, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 32, 'type': 'double', 'order': 'intel', 'physical_unit': '"degrees"'} More...
 
bool is_valid (const std::uint8_t *bytes, int32_t length) const
 check is_valid from byte array config detail: {'name': 'valid', '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_valid()

bool apollo::canbus::lincoln::Gps6d::is_valid ( const std::uint8_t *  bytes,
int32_t  length 
) const

check is_valid from byte array config detail: {'name': 'valid', '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 is_valid bit

◆ latitude()

double apollo::canbus::lincoln::Gps6d::latitude ( const std::uint8_t *  bytes,
int32_t  length 
) const

get latitude from byte array config detail: {'name': 'latitude', 'offset': 0.0, 'precision': 3.3333333e-07, 'len': 31, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 0, 'type': 'double', 'order': 'intel', 'physical_unit': '"degrees"'}

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

◆ longitude()

double apollo::canbus::lincoln::Gps6d::longitude ( const std::uint8_t *  bytes,
int32_t  length 
) const

get longitude from byte array config detail: {'name': 'longitude', 'offset': 0.0, 'precision': 3.3333333e-07, 'len': 31, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 32, 'type': 'double', 'order': 'intel', 'physical_unit': '"degrees"'}

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

◆ Parse()

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

Member Data Documentation

◆ ID

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

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