145 #ifdef PIOS_INCLUDE_MPU_MAG
146 bool use_internal_mag;
147 #endif // PIOS_INCLUDE_MPU_MAG
int32_t PIOS_MPU_I2C_Init(pios_mpu_dev_t *dev, pios_i2c_t i2c_id, const struct pios_mpu_cfg *cfg)
Initialize the MPU-xxxx 6/9-axis sensor on I2C.
pios_icm206xx_accel_filter
int32_t PIOS_MPU_SetSampleRate(uint16_t samplerate_hz)
Main PiOS header to include all the compiled in PiOS options.
enum pios_mpu_type PIOS_MPU_GetType(void)
Which type of MPU was detected?
enum pios_mpu_orientation orientation
pios_mpu6500_accel_filter
uint16_t default_samplerate
struct pios_mpu_dev * pios_mpu_dev_t
static struct flyingpicmd_cfg_fa cfg
int32_t PIOS_MPU_SPI_Init(pios_mpu_dev_t *dev, pios_spi_t spi_id, uint32_t slave_num, const struct pios_mpu_cfg *cfg)
Initialize the MPU-xxxx 6/9-axis sensor on SPI.
pios_icm206xx_gyro_filter
const struct pios_exti_cfg * exti_cfg
int32_t PIOS_MPU_SetAccelRange(enum pios_mpu_accel_range range)
struct pios_i2c_adapter * pios_i2c_t
bool skip_startup_irq_check
void PIOS_MPU_SetGyroBandwidth(uint16_t bandwidth)
Sets the bandwidth desired from the gyro. The driver will automatically select the lowest bandwidth l...
void PIOS_MPU_SetAccelBandwidth(uint16_t bandwidth)
Sets the bandwidth desired from the accelerometer. The driver will automatically select the lowest ba...
bool PIOS_MPU_IRQHandler(void)
The IMU interrupt handler. Fetches new data from the IMU.
int32_t PIOS_MPU_SetGyroRange(enum pios_mpu_gyro_range range)