refactor icm20602: use driver base class

This commit is contained in:
Beat Küng
2020-03-11 19:00:54 +01:00
committed by Daniel Agar
parent 975227c52a
commit 2f3174abb0
7 changed files with 118 additions and 184 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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