mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-20 04:41:35 +08:00
Add the 20602 start command for the AUAV x2.1 to the ROMFS rc.sensors file
This commit is contained in:
committed by
Lorenz Meier
parent
36e2bc8ae7
commit
e4afce8b1b
@@ -73,6 +73,11 @@ then
|
||||
then
|
||||
fi
|
||||
|
||||
# Internal SPI bus ICM-20602-G is rotated 90 deg yaw
|
||||
if mpu6000 -R 2 -T 20602 start
|
||||
then
|
||||
fi
|
||||
|
||||
# Internal SPI bus ICM-20608-G is rotated 90 deg yaw
|
||||
if mpu6000 -R 2 -T 20608 start
|
||||
then
|
||||
|
||||
@@ -94,13 +94,13 @@ __EXPORT void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid,
|
||||
|
||||
switch (devid) {
|
||||
|
||||
/* intended fallthrough */
|
||||
/* intended fallthrough */
|
||||
case PX4_SPIDEV_ICM_20602:
|
||||
|
||||
/* intended fallthrough */
|
||||
case PX4_SPIDEV_ICM_20608:
|
||||
/* Making sure the other peripherals are not selected */
|
||||
px4_arch_gpiowrite(GPIO_SPI_CS_ICM_2060X, !selected);
|
||||
/* intended fallthrough */
|
||||
case PX4_SPIDEV_ICM_20608:
|
||||
/* Making sure the other peripherals are not selected */
|
||||
px4_arch_gpiowrite(GPIO_SPI_CS_ICM_2060X, !selected);
|
||||
px4_arch_gpiowrite(GPIO_SPI_CS_BARO, 1);
|
||||
px4_arch_gpiowrite(GPIO_SPI_CS_MPU, 1);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user