28 #ifndef IMU_MPU9250_SPI_H
29 #define IMU_MPU9250_SPI_H
32 #include "generated/airframe.h"
43 #if !defined IMU_GYRO_P_SENS & !defined IMU_GYRO_Q_SENS & !defined IMU_GYRO_R_SENS
45 #define IMU_GYRO_P_SENS 2.17953
46 #define IMU_GYRO_P_SENS_NUM 18271
47 #define IMU_GYRO_P_SENS_DEN 8383
48 #define IMU_GYRO_Q_SENS 2.17953
49 #define IMU_GYRO_Q_SENS_NUM 18271
50 #define IMU_GYRO_Q_SENS_DEN 8383
51 #define IMU_GYRO_R_SENS 2.17953
52 #define IMU_GYRO_R_SENS_NUM 18271
53 #define IMU_GYRO_R_SENS_DEN 8383
60 #if !defined IMU_ACCEL_X_SENS & !defined IMU_ACCEL_Y_SENS & !defined IMU_ACCEL_Z_SENS
62 #define IMU_ACCEL_X_SENS 2.4525
63 #define IMU_ACCEL_X_SENS_NUM 981
64 #define IMU_ACCEL_X_SENS_DEN 400
65 #define IMU_ACCEL_Y_SENS 2.4525
66 #define IMU_ACCEL_Y_SENS_NUM 981
67 #define IMU_ACCEL_Y_SENS_DEN 400
68 #define IMU_ACCEL_Z_SENS 2.4525
69 #define IMU_ACCEL_Z_SENS_NUM 981
70 #define IMU_ACCEL_Z_SENS_DEN 400
volatile uint8_t wait_slave4_rx_buf[2]
SPI transaction structure.
volatile bool slave4_ready
void imu_mpu9250_init(void)
Driver for the MPU-9250 using SPI.
volatile uint8_t wait_slave4_tx_buf[1]
Inertial Measurement Unit interface.
void imu_mpu9250_periodic(void)
void imu_mpu9250_event(void)
struct spi_transaction wait_slave4_trans
struct ImuMpu9250 imu_mpu9250