refactor l3gd20: use driver base class

This commit is contained in:
Beat Küng
2020-03-18 17:34:55 +01:00
committed by Daniel Agar
parent 6cf4de9e02
commit 609eafd4cd
6 changed files with 89 additions and 174 deletions
@@ -16,7 +16,7 @@ qmc5883 -I -R 12 start
mpu6000 -s -R 8 start
mpu9250 -s -R 8 start
lsm303d -s -R 10 start
l3gd20 -R 14 start
l3gd20 -s -R 14 start
# Internal SPI
ms5611 -s start
+3 -3
View File
@@ -70,8 +70,8 @@ then
# sensor heating is available, but we disable it for now
param set SENS_EN_THERMAL 0
# external L3GD20H is rotated 180 degrees yaw
l3gd20 -X -R 4 start
# (external) L3GD20H is rotated 180 degrees yaw
l3gd20 -s -R 4 start
# (external) LSM303D is rotated 270 degrees yaw
lsm303d -s -R 6 start
@@ -105,7 +105,7 @@ else
# else: On the PixhawkMini the mpu9250 has been disabled due to HW errata
fi
l3gd20 start
l3gd20 -s start
lsm303d -s start
fi
+3 -3
View File
@@ -78,8 +78,8 @@ then
ak09916 -X -R 6 start
fi
# external L3GD20H is rotated 180 degrees yaw
l3gd20 -X -R 4 start
# (external) L3GD20H is rotated 180 degrees yaw
l3gd20 -s -R 4 start
# (external) LSM303D is rotated 270 degrees yaw
lsm303d -s -R 6 start
@@ -113,7 +113,7 @@ else
# else: On the PixhawkMini the mpu9250 has been disabled due to HW errata
fi
l3gd20 start
l3gd20 -s start
lsm303d -s start
fi