mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-10 21:41:36 +08:00
drivers/magnetometer/hmc5883: fix Z direction
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 ]
|
||||
|
||||
@@ -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 ]
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user