47#ifndef DW_SENSORS_IMU_IMU_H_
48#define DW_SENSORS_IMU_IMU_H_
NVIDIA DriveWorks API: Sensors
NVIDIA DriveWorks API: Core Types
NVIDIA DriveWorks API: Core Exports
dwStatus
Status definition.
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Defines a double-precision quaternion.
dwQuaterniond orientationQuaternion
Quaternion representation (x, y, z, w) of the orientation returned by the IMU.
dwTime_t timestamp_us
Timestamp for the current message. Indicates when it's first received [usec].
float64_t acceleration[3]
Acceleration in X, Y, and Z directions [m/s^2].
dwIMUHeadingType headingType
Type of the heading information.
float64_t magnetometer[3]
Measurement of the magnetometer unit in X, Y, and Z directions [utesla].
float64_t heading
Heading of the IMU measured in respect to the ENU system [degrees], i.e., compass.
float64_t orientation[3]
Roll, pitch, and yaw angle of the orientation returned by the IMU [degree].
float64_t turnrate[3]
Roll, pitch, and yaw turn rate (i.e., gyroscope)[rad/s].
uint32_t flags
The flags to show which values are valid in this IMU frame.
DW_API_PUBLIC dwStatus dwSensorIMU_processRawData(uint8_t const *const data, size_t const size, dwSensorHandle_t const sensor)
Reads the IMU frame from raw data.
dwIMUFlags
Each flag shows if that value is valid in this IMU frame.
DW_API_PUBLIC dwStatus dwSensorIMU_readFrame(dwIMUFrame *const frame, dwTime_t const timeoutUs, dwSensorHandle_t const sensor)
Reads the next IMU frame from the sensor within a given timeout.
dwIMUHeadingType
Types of the heading degree.
DW_API_PUBLIC dwStatus dwSensorIMU_popFrame(dwIMUFrame *const frame, dwSensorHandle_t const sensor)
Returns any IMU data previously processed through the raw data stream.
@ DW_IMU_ROLL
Value of dwIMUFrame.orientation[0] is valid.
@ DW_IMU_MAGNETOMETER_X
Value of dwIMUFrame.magnetometer[0] is valid.
@ DW_IMU_ROLL_RATE
!< Value of dwIMUFrame.orientationQuaternion.w is valid.
@ DW_IMU_HEADING
Value of dwIMUFrame.heading is valid.
@ DW_IMU_MAGNETOMETER_Z
Value of dwIMUFrame.magnetometer[2] is valid.
@ DW_IMU_QUATERNION_Z
!< Value of dwIMUFrame.orientationQuaternion.y is valid.
@ DW_IMU_QUATERNION_Y
!< Value of dwIMUFrame.orientationQuaternion.x is valid.
@ DW_IMU_YAW
Value of dwIMUFrame.orientation[2] is valid.
@ DW_IMU_PITCH_RATE
Value of dwIMUFrame.turnrate[1] is valid.
@ DW_IMU_ACCELERATION_Z
Value of dwIMUFrame.acceleration[2] is valid.
@ DW_IMU_ACCELERATION_X
Value of dwIMUFrame.acceleration[0] is valid.
@ DW_IMU_PITCH
Value of dwIMUFrame.orientation[1] is valid.
@ DW_IMU_YAW_RATE
Value of dwIMUFrame.turnrate[2] is valid.
@ DW_IMU_QUATERNION_W
!< Value of dwIMUFrame.orientationQuaternion.z is valid.
@ DW_IMU_ACCELERATION_Y
Value of dwIMUFrame.acceleration[1] is valid.
@ DW_IMU_MAGNETOMETER_Y
Value of dwIMUFrame.magnetometer[1] is valid.
@ DW_IMU_HEADING_TRUE
True heading.
@ DW_IMU_HEADING_MAGNETIC
Magnetic heading.
An IMU frame containing sensor readings from the IMU sensor.
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.