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
uint8_t dwSignalValidity
The type of the encoded status field.
dwStatus
Status definition.
float float32_t
Specifies POD types.
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
Defines a double-precision quaternion.
dwIMUImuTurnrateAccelQuality imuTurnrateAccelQuality[3]
dwQuaterniond orientationQuaternion
Quaternion representation (x, y, z, w) of the orientation returned by the IMU.
float64_t turnrateOffset[3]
dwIMUImuTempQuality imuTempQuality
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.
struct dwIMUFrameNew::@4 validityInfo
float64_t accelerationOffset[3]
float64_t acceleration[3]
float64_t magnetometer[3]
Measurement of the magnetometer unit in X, Y, and Z directions [utesla].
dwIMUImuAccelerationQuality imuAccelerationQuality[3]
dwQuaterniond orientationQuaternion
float64_t heading
Heading of the IMU measured in respect to the ENU system [degrees], i.e., compass.
float64_t magnetometer[3]
dwIMUAlignmentStatus alignmentStatus
Alignment status.
float64_t orientation[3]
Roll, pitch, and yaw angle of the orientation returned by the IMU [degree].
float64_t turnrateAccel[3]
uint8_t imuTurnrateOffsetQuality[3]
float64_t turnrate[3]
Roll, pitch, and yaw turn rate (i.e., gyroscope)[rad/s].
dwIMUImuTurnrateQuality imuTurnrateQuality[3]
dwIMUImuTimestampQuality imuTimestampQuality
uint32_t flags
The flags to show which values are valid in this IMU frame.
dwIMUAlignmentStatus alignmentStatus
Alignment status.
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.
dwIMUAlignmentStatus
High rate data output from GNSS-IMU device requires fusion of GNSS and IMU.
dwIMUFlags
Each flag shows if that value is valid in this IMU frame.
DW_API_PUBLIC dwStatus dwSensorIMU_processRawDataNew(uint8_t const *const data, size_t const size, dwSensorHandle_t const sensor)
Reads the IMU frame New from raw data.
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.
DW_API_PUBLIC dwStatus dwSensorIMU_popFrameNew(dwIMUFrameNew *const frame, dwSensorHandle_t const sensor)
Returns any IMU Frame New previously processed through the raw data stream.
dwIMUImuTurnrateAccelQuality
dwIMUHeadingType
Types of the heading degree.
dwIMUImuAccelerationQuality
DW_API_PUBLIC dwStatus dwSensorIMU_readFrameNew(dwIMUFrameNew *const frame, dwTime_t const timeoutUs, dwSensorHandle_t const sensor)
Reads the next IMU frame New from the sensor within a given timeout.
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_ALIGNMENT_STATUS_INVALID
Invalid means the IMU alignment is not yet valid, and the output data is not accurate.
@ DW_IMU_ALIGNMENT_STATUS_UNKNOWN
Unknown status means the device does not or has not yet provided this information.
@ DW_IMU_ALIGNMENT_STATUS_FORCE32
@ DW_IMU_ALIGNMENT_STATUS_COARSE
Coarse means the IMU is roughly aligned, so the data is useful, but not of the highest quality.
@ DW_IMU_ALIGNMENT_STATUS_FINE
Fine means the IMU alignment is complete, and the device can output high quality data.
@ 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_ALIGNMENTSTATUS
Value of dwIMUFrame.alignmentStatus 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_IMU_TURNRATE_QUALITY_FORCE32
@ DW_IMU_IMU_TURNRATE_QUALITY_INIT
Signal initializing.
@ DW_IMU_IMU_TURNRATE_QUALITY_PRMNT_FAIL
Signal permanent failure.
@ DW_IMU_IMU_TURNRATE_QUALITY_TEMPERATURE
@ DW_IMU_IMU_TURNRATE_QUALITY_OK
Signal in specification.
@ DW_IMU_IMU_TURNRATE_QUALITY_TMP_FAIL
Signal temporary failure.
@ DW_IMU_IMU_TURNRATE_QUALITY_OVERLOAD
@ DW_IMU_IMU_TURNRATE_QUALITY_SENS_NOT_INST
Sensor not installed.
@ DW_IMU_IMU_TURNRATE_QUALITY_UNCALIB
Sensor uncalibrated.
@ DW_IMU_IMU_STATUS_PRMNT_FAIL
Signal permanent failure.
@ DW_IMU_IMU_STATUS_UNCALIB
Sensor uncalibrated.
@ DW_IMU_IMU_STATUS_FORCE32
@ DW_IMU_IMU_STATUS_SENS_NOT_INST
Sensor not installed.
@ DW_IMU_IMU_STATUS_OK
Signal in specification.
@ DW_IMU_IMU_STATUS_TMP_FAIL
Signal temporary failure.
@ DW_IMU_IMU_STATUS_INIT
Signal initializing.
@ DW_IMU_IMU_TEMP_QUALITY_FORCE32
@ DW_IMU_IMU_TEMP_QUALITY_SENS_NOT_INST
Sensor not installed.
@ DW_IMU_IMU_TEMP_QUALITY_TMP_FAIL
Signal temporary failure.
@ DW_IMU_IMU_TEMP_QUALITY_INIT
Signal initializing.
@ DW_IMU_IMU_TEMP_QUALITY_UNCALIB
Sensor uncalibrated.
@ DW_IMU_IMU_TEMP_QUALITY_OK
Signal in specification.
@ DW_IMU_IMU_TEMP_QUALITY_PRMNT_FAIL
Signal permanent failure.
@ DW_IMU_IMU_TIMESTAMP_QUALITY_SYNC_LOST
Synchronization lost.
@ DW_IMU_IMU_TIMESTAMP_QUALITY_NOT_INIT
Not Initialized. still initializing.
@ DW_IMU_IMU_TIMESTAMP_QUALITY_FORCE32
@ DW_IMU_IMU_TIMESTAMP_QUALITY_OK
Normal Operation. Functional and Electrical Checks Passed.
@ DW_IMU_IMU_TURNRATE_ACCEL_QUALITY_OK
Signal in specification.
@ DW_IMU_IMU_TURNRATE_ACCEL_QUALITY_TEMPERATURE
@ DW_IMU_IMU_TURNRATE_ACCEL_QUALITY_TMP_FAIL
Signal temporary failure.
@ DW_IMU_IMU_TURNRATE_ACCEL_QUALITY_INIT
Signal initializing.
@ DW_IMU_IMU_TURNRATE_ACCEL_QUALITY_SENS_NOT_INST
Sensor not installed.
@ DW_IMU_IMU_TURNRATE_ACCEL_QUALITY_OVERLOAD
@ DW_IMU_IMU_TURNRATE_ACCEL_QUALITY_UNCALIB
Sensor uncalibrated.
@ DW_IMU_IMU_TURNRATE_ACCEL_QUALITY_FORCE32
@ DW_IMU_IMU_TURNRATE_ACCEL_QUALITY_PRMNT_FAIL
Signal permanent failure.
@ DW_IMU_HEADING_TRUE
True heading.
@ DW_IMU_HEADING_MAGNETIC
Magnetic heading.
@ DW_IMU_IMU_ACCELERATION_QUALITY_TEMPERATURE
@ DW_IMU_IMU_ACCELERATION_QUALITY_INIT
Signal initializing.
@ DW_IMU_IMU_ACCELERATION_QUALITY_SENS_NOT_INST
Sensor not installed.
@ DW_IMU_IMU_ACCELERATION_QUALITY_TMP_FAIL
Signal temporary failure.
@ DW_IMU_IMU_ACCELERATION_QUALITY_UNCALIB
Sensor uncalibrated.
@ DW_IMU_IMU_ACCELERATION_QUALITY_FORCE32
@ DW_IMU_IMU_ACCELERATION_QUALITY_PRMNT_FAIL
Signal permanent failure.
@ DW_IMU_IMU_ACCELERATION_QUALITY_OK
Signal in specification.
@ DW_IMU_IMU_ACCELERATION_QUALITY_OVERLOAD
An IMU frame containing sensor readings from the IMU sensor.
This structure contains one frame of data from a IMU sensor.
struct dwSensorObject * dwSensorHandle_t
Handle representing a sensor.