Apollo 10.0
自动驾驶开放平台
|
one of the protocol data of lincoln vehicle 更多...
#include <gps_6d.h>
Public 成员函数 | |
virtual void | Parse (const std::uint8_t *bytes, int32_t length, Lincoln *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"'} | |
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"'} | |
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': '""'} | |
![]() | |
ProtocolData ()=default | |
construct protocol data. | |
virtual | ~ProtocolData ()=default |
destruct protocol data. | |
virtual uint32_t | GetPeriod () const |
virtual int32_t | GetLength () const |
virtual void | Parse (const uint8_t *bytes, int32_t length, ::apollo::canbus::Lincoln *sensor_data) const |
virtual void | UpdateData (uint8_t *data) |
virtual void | UpdateData_Heartbeat (uint8_t *data) |
virtual void | Reset () |
静态 Public 属性 | |
static const int32_t | ID = 0x6D |
额外继承的成员函数 | |
![]() | |
static std::uint8_t | CalculateCheckSum (const uint8_t *input, const uint32_t length) |
static function, used to calculate the checksum of input array. | |
static T | BoundedValue (T lower, T upper, T val) |
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': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
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"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
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"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
|
virtual |