PX4: startup FMUv3 sensors if available

This commit is contained in:
Andrew Tridgell 2014-06-26 14:05:15 +10:00
parent e6d8e329d5
commit 166c1fd530

View File

@ -258,16 +258,32 @@ else
if l3gd20 start if l3gd20 start
then then
echo "l3gd20 started OK" echo "l3gd20 started OK"
else
if l3gd20 -X start
then
echo "l3gd20 external started OK"
else else
sh /etc/init.d/rc.error sh /etc/init.d/rc.error
fi fi
fi
if lsm303d start if lsm303d start
then then
echo "lsm303d started OK" echo "lsm303d started OK"
else
if lsm303d -X start
then
echo "lsm303d external started OK"
else else
sh /etc/init.d/rc.error sh /etc/init.d/rc.error
fi fi
fi fi
if mpu6000 -X start
then
echo "Found MPU6000 external"
else
echo "No MPU6000 external"
fi
fi
# optional ETS airspeed sensor # optional ETS airspeed sensor
if ets_airspeed start if ets_airspeed start