omnibus: add support for Hobbywing XRotor F4 G2

It has an ICM-20602 IMU
This commit is contained in:
Beat Küng 2018-07-23 09:30:23 +02:00
parent b111489825
commit 3f03288a95
2 changed files with 7 additions and 1 deletions

View File

@ -297,7 +297,12 @@ fi
if ver hwcmp OMNIBUS_F4SD
then
mpu6000 -R 12 -s start
if mpu6000 -R 12 -s start
then
else
# some boards such as the Hobbywing XRotor F4 G2 use the ICM-20602
mpu6000 -R 12 -T 20602 -s start
fi
# Possible external compasses
hmc5883 -X start

View File

@ -172,6 +172,7 @@
// One device per bus
#define PX4_SPI_BUS_SENSORS 1
#define PX4_SPIDEV_MPU 1
#define PX4_SPIDEV_ICM_20602 1
#define PX4_SPIDEV_BARO_BUS 3
#define PX4_SPIDEV_BARO 1