Skip to content
Snippets Groups Projects
Commit 6df5aab0 authored by David Sidrane's avatar David Sidrane Committed by Lorenz Meier
Browse files

px4fmu-v4 uses MPU6000 driver for ICM-20609-G

parent 46c63da8
No related branches found
No related tags found
No related merge requests found
......@@ -84,8 +84,8 @@ else
then
fi
# Internal SPI bus try MPU6K on ICM-20608-G is rotated 180 deg roll, 270 deg yaw
if mpu6000 -R 14 start
# Internal SPI bus ICM-20608-G is rotated 180 deg roll, 270 deg yaw
if mpu6000 -R 14 -T 20608 start
then
fi
else
......
......@@ -14,6 +14,7 @@ set(config_module_list
drivers/px4fmu
drivers/boards/px4fmu-v4
drivers/rgbled
drivers/mpu6000
drivers/mpu9250
drivers/hmc5883
drivers/ms5611
......
......@@ -127,6 +127,7 @@ __BEGIN_DECLS
#define PX4_SPIDEV_BARO 3
#define PX4_SPIDEV_MPU 4
#define PX4_SPIDEV_HMC 5
#define PX4_SPIDEV_ICM 6
/* I2C busses */
#define PX4_I2C_BUS_EXPANSION 1
......
......@@ -101,7 +101,7 @@ __EXPORT void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
/* SPI select is active low, so write !selected to select the device */
switch (devid) {
case PX4_SPIDEV_GYRO:
case PX4_SPIDEV_ICM:
/* Making sure the other peripherals are not selected */
stm32_gpiowrite(GPIO_SPI_CS_MPU9250, 1);
stm32_gpiowrite(GPIO_SPI_CS_HMC5983, 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment