Inertial Measurement Unit sensor#
Inertial Measurement Unit sensor driver abstraction designed for Thunderboard.
Functions#
void
sl_sensor_imu_init(void)
void
sl_sensor_imu_deinit(void)
sl_status_t
sl_sensor_imu_enable(bool enable)
sl_status_t
sl_sensor_imu_get(int16_t ovec[3], int16_t avec[3])
sl_status_t
sl_sensor_imu_calibrate(void)
Function Documentation#
sl_sensor_imu_init#
void sl_sensor_imu_init (void )
Parameters
N/A |
Initialize IMU sensor.
Definition at line
45
of file common/sensor_imu/sl_sensor_imu.h
sl_sensor_imu_deinit#
void sl_sensor_imu_deinit (void )
Parameters
N/A |
Deinitialize IMU sensor.
Definition at line
50
of file common/sensor_imu/sl_sensor_imu.h
sl_sensor_imu_enable#
sl_status_t sl_sensor_imu_enable (bool enable)
Parameters
[in] | enable | (true) or disable (false). |
Enable/disable IMU sensor. Returns
Status of the operation.
Definition at line
57
of file common/sensor_imu/sl_sensor_imu.h
sl_sensor_imu_get#
sl_status_t sl_sensor_imu_get (int16_t ovec, int16_t avec)
Parameters
[out] | ovec | Three dimensional orientation vector (in 0.01 degree). |
[out] | avec | Three dimensional acceleration vector. |
Getter for orientation and acceleration sensor measurement data. Returns
Status of the operation.
Definition at line
65
of file common/sensor_imu/sl_sensor_imu.h
sl_sensor_imu_calibrate#
sl_status_t sl_sensor_imu_calibrate (void )
Parameters
N/A |
Perform IMU sensor calibration. Returns
Status of the operation.
Definition at line
71
of file common/sensor_imu/sl_sensor_imu.h