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

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

#include <gps_6f.h>

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

Public Member Functions

virtual void Parse (const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis_detail) const
 
double altitude (const std::uint8_t *bytes, int32_t length) const
 get altitude from byte array config detail: {'name': 'altitude', 'offset': 0.0, 'precision': 0.25, 'len': 16, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 0, 'type': 'double', 'order': 'intel', 'physical_unit': '"m"'} More...
 
double heading (const std::uint8_t *bytes, int32_t length) const
 get heading from byte array config detail: {'name': 'heading', 'offset': 0.0, 'precision': 0.01, 'len': 16, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 16, 'type': 'double', 'order': 'intel', 'physical_unit': '"degrees"'} More...
 
int32_t speed (const std::uint8_t *bytes, int32_t length) const
 get speed from byte array config detail: {'name': 'speed', 'offset': 0.0, 'precision': 1.0, 'len': 8, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 32, 'type': 'int', 'order': 'intel', 'physical_unit': '"mph"'} More...
 
double hdop (const std::uint8_t *bytes, int32_t length) const
 get hdop from byte array config detail: {'name': 'hdop', 'offset': 0.0, 'precision': 0.2, 'len': 5, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 40, 'type': 'double', 'order': 'intel', 'physical_unit': '""'} More...
 
double vdop (const std::uint8_t *bytes, int32_t length) const
 get vdop from byte array config detail: {'name': 'vdop', 'offset': 0.0, 'precision': 0.2, 'len': 5, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 48, 'type': 'double', 'order': 'intel', 'physical_unit': '""'} More...
 
int32_t fix_quality (const std::uint8_t *bytes, int32_t length) const
 get fix quality from byte array config detail: {'name': 'quality', 'offset': 0.0, 'precision': 1.0, 'len': 3, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 56, 'type': 'int', 'order': 'intel', 'physical_unit': '""'} More...
 
int32_t num_satellites (const std::uint8_t *bytes, int32_t length) const
 get number of satellites from byte array config detail: {'name': 'numsat', 'offset': 0.0, 'precision': 1.0, 'len': 5, 'f_type': 'value', 'is_signed_var': False, 'physical_range': '[0|0]', 'bit': 59, 'type': 'int', '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

◆ altitude()

double apollo::canbus::lincoln::Gps6f::altitude ( const std::uint8_t *  bytes,
int32_t  length 
) const

get altitude from byte array config detail: {'name': 'altitude', 'offset': 0.0, 'precision': 0.25, 'len': 16, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 0, 'type': 'double', 'order': 'intel', 'physical_unit': '"m"'}

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

◆ fix_quality()

int32_t apollo::canbus::lincoln::Gps6f::fix_quality ( const std::uint8_t *  bytes,
int32_t  length 
) const

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

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

◆ hdop()

double apollo::canbus::lincoln::Gps6f::hdop ( const std::uint8_t *  bytes,
int32_t  length 
) const

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

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

◆ heading()

double apollo::canbus::lincoln::Gps6f::heading ( const std::uint8_t *  bytes,
int32_t  length 
) const

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

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

◆ num_satellites()

int32_t apollo::canbus::lincoln::Gps6f::num_satellites ( const std::uint8_t *  bytes,
int32_t  length 
) const

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

Parameters
bytesa pointer to the byte array
lengththe length of the byte array
Returns
the number of satellites

◆ Parse()

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

◆ speed()

int32_t apollo::canbus::lincoln::Gps6f::speed ( const std::uint8_t *  bytes,
int32_t  length 
) const

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

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

◆ vdop()

double apollo::canbus::lincoln::Gps6f::vdop ( const std::uint8_t *  bytes,
int32_t  length 
) const

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

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

Member Data Documentation

◆ ID

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

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