refactor lsm303d: use driver base class

This commit is contained in:
Beat Küng
2020-03-24 09:46:20 -04:00
committed by Daniel Agar
parent 3423809cd9
commit 6cf4de9e02
6 changed files with 76 additions and 158 deletions
+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