imu_mpu9250_spi

IMU with MPU9250 via SPI. Reads the internal AK8963 mag as I2C slave of the MPU.

Defines

Name

Value

Description

IMU_MPU9250_GYRO_LOWPASS_FILTER

MPU9250_DLPF_GYRO_250HZ

gyro DigitalLowPassFilter setting of the MPU

IMU_MPU9250_ACCEL_LOWPASS_FILTER

MPU9250_DLPF_ACCEL_184HZ

accelerometer DigitalLowPassFilter setting of the MPU

IMU_MPU9250_SMPLRT_DIV

3

sample rate divider setting of the MPU

IMU_MPU9250_GYRO_RANGE

MPU9250_GYRO_RANGE_1000

gyroscope range setting of the MPU

IMU_MPU9250_ACCEL_RANGE

MPU9250_ACCEL_RANGE_8G

accelerometer range setting of the MPU

IMU_MPU9250_READ_MAG

TRUE

set to FALSE to disable mag

IMU_MPU9250_STARTUP_DELAY

1.0

startup delay in seconds until mag slave is configured

IMU_MPU9250_CHAN_X

0

channel index

IMU_MPU9250_CHAN_Y

1

channel index

IMU_MPU9250_CHAN_Z

2

channel index

IMU_MPU9250_X_SIGN

1

axis sign

IMU_MPU9250_Y_SIGN

1

axis sign

IMU_MPU9250_Z_SIGN

1

axis sign

Depends

  • spi_master
  • imu_common

Provides

  • imu
  • mag