mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-07 07:41:36 +08:00
rc.sensors : start external compass on v4Pro and v5 with temperature compensation and self-calibration at startup
This commit is contained in:
committed by
Lorenz Meier
parent
dde605fc4a
commit
f97822155a
@@ -343,6 +343,7 @@ fi
|
|||||||
|
|
||||||
if ver hwcmp PX4FMU_V4PRO
|
if ver hwcmp PX4FMU_V4PRO
|
||||||
then
|
then
|
||||||
|
|
||||||
# Internal SPI bus ICM-20608-G
|
# Internal SPI bus ICM-20608-G
|
||||||
if mpu6000 -R 2 -T 20608 start
|
if mpu6000 -R 2 -T 20608 start
|
||||||
then
|
then
|
||||||
@@ -364,7 +365,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Possible external compasses
|
# Possible external compasses
|
||||||
if hmc5883 -X start
|
if hmc5883 -C -T -X start
|
||||||
then
|
then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -372,6 +373,7 @@ fi
|
|||||||
|
|
||||||
if ver hwcmp PX4FMU_V5
|
if ver hwcmp PX4FMU_V5
|
||||||
then
|
then
|
||||||
|
|
||||||
# Internal SPI bus ICM-20602
|
# Internal SPI bus ICM-20602
|
||||||
if mpu6000 -R 8 -s -T 20602 start
|
if mpu6000 -R 8 -s -T 20602 start
|
||||||
then
|
then
|
||||||
@@ -393,7 +395,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Possible external compasses
|
# Possible external compasses
|
||||||
if hmc5883 -X start
|
if hmc5883 -C -T -X start
|
||||||
then
|
then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -401,6 +403,7 @@ then
|
|||||||
if meas_airspeed start -b 2
|
if meas_airspeed start -b 2
|
||||||
then
|
then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ver hwcmp AEROCORE2
|
if ver hwcmp AEROCORE2
|
||||||
|
|||||||
Reference in New Issue
Block a user