refactor lsm303d: use driver base class

This commit is contained in:
Beat Küng
2020-03-18 17:33:40 +01:00
committed by Daniel Agar
parent 3423809cd9
commit 6cf4de9e02
6 changed files with 76 additions and 158 deletions
@@ -15,7 +15,7 @@ qmc5883 -I -R 12 start
mpu6000 -s -R 8 start
mpu9250 -s -R 8 start
lsm303d -R 10 start
lsm303d -s -R 10 start
l3gd20 -R 14 start
# Internal SPI
+3 -3
View File
@@ -73,8 +73,8 @@ then
# external L3GD20H is rotated 180 degrees yaw
l3gd20 -X -R 4 start
# external LSM303D is rotated 270 degrees yaw
lsm303d -X -R 6 start
# (external) LSM303D is rotated 270 degrees yaw
lsm303d -s -R 6 start
if [ $BOARD_FMUV3 = 20 ]
then
@@ -106,7 +106,7 @@ else
fi
l3gd20 start
lsm303d start
lsm303d -s start
fi
unset BOARD_FMUV3
+3 -3
View File
@@ -81,8 +81,8 @@ then
# external L3GD20H is rotated 180 degrees yaw
l3gd20 -X -R 4 start
# external LSM303D is rotated 270 degrees yaw
lsm303d -X -R 6 start
# (external) LSM303D is rotated 270 degrees yaw
lsm303d -s -R 6 start
if [ $BOARD_FMUV3 = 20 ]
then
@@ -114,7 +114,7 @@ else
fi
l3gd20 start
lsm303d start
lsm303d -s start
fi
# External RM3100