Module imu

Module imu 

Source

Structs§

euler_s_t
imu_raw_s
quaternion_s_t

Constants§

E_IMU_STATUS_CALIBRATING
E_IMU_STATUS_ERROR
IMU_MINIMUM_DATA_RATE

Functions§

imu_get_accel
Get the Inertial Sensor’s raw accelerometer values
imu_get_euler
Get the Euler angles representing the Inertial Sensor’s orientation
imu_get_gyro_rate
Get the Inertial Sensor’s raw gyroscope values
imu_get_heading
Get the Inertial Sensor’s heading relative to the initial direction of its x-axis
imu_get_pitch
Get the Inertial Sensor’s pitch angle bounded by (-180,180)
imu_get_quaternion
Get a quaternion representing the Inertial Sensor’s orientation
imu_get_roll
Get the Inertial Sensor’s roll angle bounded by (-180,180)
imu_get_rotation
Get the total number of degrees the Inertial Sensor has spun about the z-axis
imu_get_status
Get the Inertial Sensor’s status
imu_get_yaw
Get the Inertial Sensor’s roll angle bounded by (-180,180)
imu_reset
Calibrate IMU
imu_reset_blocking
Calibrate IMU and Blocks while Calibrating
imu_set_data_rate
Set the Inertial Sensor’s refresh interval in milliseconds.
imu_set_euler
Sets the current reading of the Inertial Sensor’s euler values to target euler values. Will default to +/- 180 if target exceeds +/- 180.
imu_set_heading
Sets the current reading of the Inertial Sensor’s heading to target value Target will default to 360 if above 360 and default to 0 if below 0.
imu_set_pitch
Sets the current reading of the Inertial Sensor’s pitch to target value Will default to +/- 180 if target exceeds +/- 180.
imu_set_roll
Sets the current reading of the Inertial Sensor’s roll to target value Will default to +/- 180 if target exceeds +/- 180.
imu_set_rotation
Sets the current reading of the Inertial Sensor’s rotation to target value
imu_set_yaw
Sets the current reading of the Inertial Sensor’s yaw to target value Will default to +/- 180 if target exceeds +/- 180.
imu_tare
Resets all 5 values of the Inertial Sensor to 0.
imu_tare_euler
Reset all 3 euler values of the Inertial Sensor to 0.
imu_tare_heading
Resets the current reading of the Inertial Sensor’s heading to zero
imu_tare_pitch
Resets the current reading of the Inertial Sensor’s pitch to zero
imu_tare_roll
Resets the current reading of the Inertial Sensor’s roll to zero
imu_tare_rotation
Resets the current reading of the Inertial Sensor’s rotation to zero
imu_tare_yaw
Resets the current reading of the Inertial Sensor’s yaw to zero

Type Aliases§

imu_accel_s_t
imu_gyro_s_t
imu_status_e_t