mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 02:16:53 +08:00
Strip excessive binary text to save some flash, start all three sensor sets
This commit is contained in:
@@ -8,22 +8,18 @@ adc start
|
|||||||
|
|
||||||
if mpu6000 -X start
|
if mpu6000 -X start
|
||||||
then
|
then
|
||||||
echo "External MPU6000"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if mpu6000 start
|
if mpu6000 start
|
||||||
then
|
then
|
||||||
echo "Internal MPU6000"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if l3gd20 -X start
|
if l3gd20 -X start
|
||||||
then
|
then
|
||||||
echo "External L3GD20(H)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if l3gd20 start
|
if l3gd20 start
|
||||||
then
|
then
|
||||||
echo "Internal L3GD20(H)"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# MAG selection
|
# MAG selection
|
||||||
@@ -31,7 +27,6 @@ if param compare SENS_EXT_MAG 2
|
|||||||
then
|
then
|
||||||
if hmc5883 -I start
|
if hmc5883 -I start
|
||||||
then
|
then
|
||||||
echo "Internal HMC5883"
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Use only external as primary
|
# Use only external as primary
|
||||||
@@ -39,13 +34,11 @@ else
|
|||||||
then
|
then
|
||||||
if hmc5883 -X start
|
if hmc5883 -X start
|
||||||
then
|
then
|
||||||
echo "External HMC5883"
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# auto-detect the primary, prefer external
|
# auto-detect the primary, prefer external
|
||||||
if hmc5883 start
|
if hmc5883 start
|
||||||
then
|
then
|
||||||
echo "Default HMC5883"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -54,12 +47,10 @@ if ver hwcmp PX4FMU_V2
|
|||||||
then
|
then
|
||||||
if lsm303d -X start
|
if lsm303d -X start
|
||||||
then
|
then
|
||||||
echo "External LSM303D"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if lsm303d start
|
if lsm303d start
|
||||||
then
|
then
|
||||||
echo "Internal LSM303D"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -70,11 +61,9 @@ then
|
|||||||
else
|
else
|
||||||
if ets_airspeed start
|
if ets_airspeed start
|
||||||
then
|
then
|
||||||
echo "[init] Using ETS airspeed sensor (bus 3)"
|
|
||||||
else
|
else
|
||||||
if ets_airspeed start -b 1
|
if ets_airspeed start -b 1
|
||||||
then
|
then
|
||||||
echo "[init] Using ETS airspeed sensor (bus 1)"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user