one of the protocol data of lincoln vehicle
More...
#include <gyro_6c.h>
|
virtual void | Parse (const std::uint8_t *bytes, int32_t length, ChassisDetail *chassis_detail) const |
|
double | roll_rate (const std::uint8_t *bytes, int32_t length) const |
| calculate the roll rate based on byte array. config detail: {'name': 'roll', 'offset': 0.0, 'precision': 0.0002, 'len': 16, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 0, 'type': 'double', 'order': 'intel', 'physical_unit': '"rad/s"'} More...
|
|
double | yaw_rate (const std::uint8_t *bytes, int32_t length) const |
| calculate longitudinal_acceleration based on byte array. config detail: {'name': 'yaw', 'offset': 0.0, 'precision': 0.0002, 'len': 16, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 16, 'type': 'double', 'order': 'intel', 'physical_unit': '"rad/s"'} More...
|
|
| 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 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) |
|
one of the protocol data of lincoln vehicle
◆ Parse()
virtual void apollo::canbus::lincoln::Gyro6c::Parse |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length, |
|
|
ChassisDetail * |
chassis_detail |
|
) |
| const |
|
virtual |
◆ roll_rate()
double apollo::canbus::lincoln::Gyro6c::roll_rate |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length |
|
) |
| const |
calculate the roll rate based on byte array. config detail: {'name': 'roll', 'offset': 0.0, 'precision': 0.0002, 'len': 16, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 0, 'type': 'double', 'order': 'intel', 'physical_unit': '"rad/s"'}
- Parameters
-
bytes | a pointer to the byte array |
length | the length of the byte array |
- Returns
- the value of roll rate
◆ yaw_rate()
double apollo::canbus::lincoln::Gyro6c::yaw_rate |
( |
const std::uint8_t * |
bytes, |
|
|
int32_t |
length |
|
) |
| const |
calculate longitudinal_acceleration based on byte array. config detail: {'name': 'yaw', 'offset': 0.0, 'precision': 0.0002, 'len': 16, 'f_type': 'value', 'is_signed_var': True, 'physical_range': '[0|0]', 'bit': 16, 'type': 'double', 'order': 'intel', 'physical_unit': '"rad/s"'}
- Parameters
-
bytes | a pointer to the byte array |
length | the length of the byte array |
- Returns
- the value of yaw rate
◆ ID
const int32_t apollo::canbus::lincoln::Gyro6c::ID |
|
static |
The documentation for this class was generated from the following file:
- modules/canbus/vehicle/lincoln/protocol/gyro_6c.h