mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-13 06:57:34 +08:00
changes on drivers according to comments from DavidS
This commit is contained in:
committed by
Lorenz Meier
parent
da31e6e0b5
commit
641a03510c
@@ -180,42 +180,37 @@ fi
|
||||
if ver hwcmp PX4FMU_V4
|
||||
then
|
||||
# External I2C bus
|
||||
#if hmc5883 -C -T -X start
|
||||
#then
|
||||
#fi
|
||||
if hmc5883 -C -T -X start
|
||||
then
|
||||
fi
|
||||
|
||||
#if lis3mdl -R 2 start
|
||||
#then
|
||||
#fi
|
||||
if lis3mdl -R 2 start
|
||||
then
|
||||
fi
|
||||
|
||||
# Internal SPI bus is rotated 90 deg yaw
|
||||
#if hmc5883 -C -T -S -R 2 start
|
||||
#then
|
||||
#fi
|
||||
if hmc5883 -C -T -S -R 2 start
|
||||
then
|
||||
fi
|
||||
|
||||
# Internal SPI bus ICM-20608-G is rotated 90 deg yaw
|
||||
#if mpu6000 -R 2 -T 20608 start
|
||||
#then
|
||||
#fi
|
||||
|
||||
# Internal SPI bus ICM-20602-G is rotated 90 deg yaw
|
||||
#if mpu6000 -R 2 -T 20602 start
|
||||
#then
|
||||
#fi
|
||||
if mpu6000 -R 2 -T 20608 start
|
||||
then
|
||||
fi
|
||||
|
||||
# Start either MPU9250 or BMI160. They are both connected to the same SPI bus and use the same
|
||||
# chip select pin. There are different boards with either one of them and the WHO_AM_I register
|
||||
# will prevent the incorrect driver from a successful initialization.
|
||||
|
||||
# Internal SPI bus mpu9250 is rotated 90 deg yaw
|
||||
#if mpu9250 -R 2 start
|
||||
#then
|
||||
#fi
|
||||
if mpu9250 -R 2 start
|
||||
then
|
||||
fi
|
||||
|
||||
# Internal SPI bus BMI160
|
||||
#if bmi160 start
|
||||
#then
|
||||
#fi
|
||||
if bmi160 start
|
||||
then
|
||||
fi
|
||||
|
||||
# Start either ICM2060X or BMI055. They are both connected to the same SPI bus and use the same
|
||||
# chip select pin. There are different boards with either one of them and the WHO_AM_I register
|
||||
@@ -231,13 +226,13 @@ then
|
||||
then
|
||||
fi
|
||||
|
||||
# expansion i2c used for BMM150
|
||||
if bmm150 start
|
||||
# expansion i2c used for BMM150 rotated by 90deg
|
||||
if bmm150 -R 2 start
|
||||
then
|
||||
fi
|
||||
|
||||
# expansion i2c used for BMP285
|
||||
if bmp285 start
|
||||
# expansion i2c used for BMP280
|
||||
if bmp280 -I start
|
||||
then
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user