mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 18:47:21 +08:00
refactor icm20602: use driver base class
This commit is contained in:
@@ -8,7 +8,7 @@ adc start
|
||||
if ! mpu6000 -R 12 -s start
|
||||
then
|
||||
# some boards such as the Hobbywing XRotor F4 G2 use the ICM-20602
|
||||
icm20602 -R 6 start
|
||||
icm20602 -s -R 6 start
|
||||
#mpu6000 -R 12 -T 20602 -s start
|
||||
fi
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ fi
|
||||
# will prevent the incorrect driver from a successful initialization.
|
||||
|
||||
# ICM20602 internal SPI bus ICM-20608-G is rotated 90 deg yaw
|
||||
if ! icm20602 -R 8 start
|
||||
if ! icm20602 -s -R 8 start
|
||||
then
|
||||
# ICM20608 internal SPI bus ICM-20602-G is rotated 90 deg yaw
|
||||
icm20608g -R 8 start
|
||||
|
||||
@@ -11,7 +11,7 @@ adc start
|
||||
icm20608g -R 8 start
|
||||
|
||||
# Internal SPI bus ICM-20602
|
||||
icm20602 -R 8 start
|
||||
icm20602 -s -R 8 start
|
||||
|
||||
# Internal SPI bus mpu9250
|
||||
mpu9250 -R 2 start
|
||||
|
||||
@@ -7,14 +7,14 @@ adc start
|
||||
|
||||
# Internal SPI bus ICM-20602
|
||||
mpu6000 -R 8 -s -T 20602 start
|
||||
#icm20602 -R 6 start
|
||||
#icm20602 -s -R 6 start
|
||||
|
||||
# Internal SPI bus ICM-20689
|
||||
mpu6000 -R 8 -s -T 20689 start
|
||||
#icm20689 -R 6 start
|
||||
|
||||
# new sensor drivers (in testing)
|
||||
#icm20602 start
|
||||
#icm20602 -s start
|
||||
#icm20689 start
|
||||
|
||||
# Internal SPI bus BMI055 accel
|
||||
|
||||
Reference in New Issue
Block a user