IMU Hardware Driver.
More...
|
file | imu.c |
| IMU Hardware Driver - uos3-proto board.
|
|
|
void | IMU_Init (void) |
|
bool | IMU_selftest (void) |
|
void | IMU_read_accel (int16_t *accel_x, int16_t *accel_y, int16_t *accel_z) |
|
void | IMU_read_gyro (int16_t *gyro_x, int16_t *gyro_y, int16_t *gyro_z) |
|
void | IMU_read_magno (int16_t *magno_x, int16_t *magno_y, int16_t *magno_z) |
|
void | IMU_read_temp (int16_t *temp_imu) |
|
void | IMU_set_accel_sensitivity (imu_accel_sensitivity_t imu_accel_sensitivity) |
|
void | IMU_set_accel_bandwidth (imu_bandwidth_t imu_accel_bandwidth) |
|
void | IMU_set_gyro_sensitivity (imu_gyro_sensitivity_t imu_gyro_sensitivity) |
|
void | IMU_set_gyro_bandwidth (imu_bandwidth_t imu_gyro_bandwidth) |
|
IMU Hardware Driver.
IMU Hardware Driver.
Initialise and configure IMU
Definition at line 43 of file imu.c.
bool IMU_selftest |
( |
void |
| ) |
|
Tests functionality of IMU
- Returns
- True if passed, False otherwise
Definition at line 164 of file imu.c.
void IMU_read_accel |
( |
int16_t * |
accel_x, |
|
|
int16_t * |
accel_y, |
|
|
int16_t * |
accel_z |
|
) |
| |
Read Accelerometer
Pointer to x-value data storage Pointer to y-value data storage Pointer to z-value data storage
Definition at line 171 of file imu.c.
void IMU_read_gyro |
( |
int16_t * |
gyro_x, |
|
|
int16_t * |
gyro_y, |
|
|
int16_t * |
gyro_z |
|
) |
| |
Read Gyroscope
Pointer to x-value data storage Pointer to y-value data storage Pointer to z-value data storage
Definition at line 178 of file imu.c.
void IMU_read_magno |
( |
int16_t * |
magno_x, |
|
|
int16_t * |
magno_y, |
|
|
int16_t * |
magno_z |
|
) |
| |
Read Magnetometer
Pointer to x-value data storage Pointer to y-value data storage Pointer to z-value data storage
Definition at line 187 of file imu.c.
void IMU_read_temp |
( |
int16_t * |
temp_imu | ) |
|
Read temperature from IMU
Pointer to temperature data storage
Definition at line 197 of file imu.c.