Apollo 10.0
自动驾驶开放平台
|
one of the protocol data of lincoln vehicle 更多...
#include <gps_6e.h>
Public 成员函数 | |
virtual void | Parse (const std::uint8_t *bytes, int32_t length, Lincoln *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"'} | |
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"'} | |
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"'} | |
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"'} | |
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"'} | |
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"'} | |
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"'} | |
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': '""'} | |
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': '""'} | |
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': '""'} | |
![]() | |
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 = 0x6E |
额外继承的成员函数 | |
![]() | |
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) |
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"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
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"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
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"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
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': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
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': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
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"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
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"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
|
virtual |
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': '""'}
bytes | a pointer to the byte array |
length | the length of the byte array |
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"'}
bytes | a pointer to the byte array |
length | the length of the byte array |
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"'}
bytes | a pointer to the byte array |
length | the length of the byte array |