drivers/magnetometer/hmc5883: fix Z direction

This commit is contained in:
Daniel Agar
2021-11-09 11:49:46 -05:00
parent ab9b9b1eac
commit ae8fdf4c04
5 changed files with 13 additions and 36 deletions
@@ -6,7 +6,7 @@
board_adc start
# Internal I2C bus
hmc5883 -T -I -R 12 start
hmc5883 -T -I -R 2 start
qmc5883l -I -R 6 start
mpu6000 -s -R 2 start
+1 -4
View File
@@ -8,9 +8,6 @@ rgbled_ncp5623c start -I
board_adc start
# Internal I2C bus
hmc5883 -T -I -R 4 start
# Internal SPI (auto detect ms5611 or ms5607)
if ! ms5611 -T 5607 -s -b 1 start
then
@@ -80,7 +77,7 @@ then
mpu6000 -s -b 1 start
# v2.0 Has internal hmc5883 on SPI1
hmc5883 -T -s -b 1 -R 8 start
hmc5883 -T -s -b 1 start
fi
if [ $BOARD_FMUV3 = 21 ]
+1 -4
View File
@@ -8,9 +8,6 @@ rgbled_ncp5623c start -I
board_adc start
# Internal I2C bus
hmc5883 -T -I -R 4 start
# Internal SPI (auto detect ms5611 or ms5607)
if ! ms5611 -T 5607 -s -b 1 start
then
@@ -80,7 +77,7 @@ then
mpu6000 -s -b 1 start
# v2.0 Has internal hmc5883 on SPI1
hmc5883 -T -s -b 1 -R 8 start
hmc5883 -T -s -b 1 start
fi
if [ $BOARD_FMUV3 = 21 ]
+3 -3
View File
@@ -16,10 +16,10 @@ pwm_out sensor_reset 50
# Internal SPI
ms5611 -s start
# hmc5883 internal SPI bus is rotated 90 deg yaw
if ! hmc5883 -T -s -R 2 start
# hmc5883 internal SPI bus
if ! hmc5883 -T -s -R 12 start
then
# lis3mdl internal SPI bus is rotated 90 deg yaw
# lis3mdl internal SPI bus
lis3mdl -s start
fi