mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
Sensors startup: Correct startup for HMC5883
This commit is contained in:
@@ -8,10 +8,12 @@ adc start
|
||||
|
||||
if ver hwcmp PX4FMU_V2
|
||||
then
|
||||
# External I2C bus
|
||||
if hmc5883 -C -X start
|
||||
then
|
||||
fi
|
||||
|
||||
# Internal I2C bus
|
||||
if hmc5883 -C -I -R 4 start
|
||||
then
|
||||
fi
|
||||
@@ -41,6 +43,10 @@ then
|
||||
then
|
||||
fi
|
||||
|
||||
if hmc5883 -S -R 8 start
|
||||
then
|
||||
fi
|
||||
|
||||
else
|
||||
# FMUv2
|
||||
if mpu6000 start
|
||||
|
||||
Reference in New Issue
Block a user