imu.h File Reference
Sensor API for inertial measurement unit (IMU) readings. More...
#include "kubos-core/modules/sensors/sensors.h"
Go to the source code of this file.
Data Structures | |
struct | k_sensor_vector_t |
3D IMU vector More... | |
struct | k_position_vector_t |
Quaternion absolute position vector. More... | |
Functions | |
KSensorStatus | k_initialize_imu_sensor (void) |
Setup the IMU interface and any related sensors. More... | |
KSensorStatus | k_get_gyro (k_sensor_vector_t *gyro) |
Reads gyroscope data from the related sensor. More... | |
KSensorStatus | k_get_compass (k_sensor_vector_t *mag) |
Reads magnetometer data from the related sensor. More... | |
KSensorStatus | k_get_acceleration (k_sensor_vector_t *accel) |
Reads accelerometer data from the related sensor. More... | |
KSensorStatus | k_get_absolute_position (k_position_vector_t *pos) |
Computes absolute position in a quaternion vector using sensor fusion. More... | |