aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/px4fmu_common/init.d/rc.sensors
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2014-01-15 00:02:57 +0100
committerAnton Babushkin <anton.babushkin@me.com>2014-01-15 00:02:57 +0100
commita8d362de13b23a2523dc69d582c68fe672ac236d (patch)
tree52b3c72b9c326299e234915503a6efd5dfa5e587 /ROMFS/px4fmu_common/init.d/rc.sensors
parentd1b2186806e0b9e32808a04f6c85d26a703c596e (diff)
downloadpx4-firmware-a8d362de13b23a2523dc69d582c68fe672ac236d.tar.gz
px4-firmware-a8d362de13b23a2523dc69d582c68fe672ac236d.tar.bz2
px4-firmware-a8d362de13b23a2523dc69d582c68fe672ac236d.zip
Autostart: use MIXER instead of FRAME_GEOMETRY
Diffstat (limited to 'ROMFS/px4fmu_common/init.d/rc.sensors')
-rw-r--r--ROMFS/px4fmu_common/init.d/rc.sensors21
1 files changed, 12 insertions, 9 deletions
diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors
index a2517135f..badbf92c3 100644
--- a/ROMFS/px4fmu_common/init.d/rc.sensors
+++ b/ROMFS/px4fmu_common/init.d/rc.sensors
@@ -10,39 +10,42 @@
ms5611 start
adc start
-# mag might be external
+# Mag might be external
if hmc5883 start
then
- echo "using HMC5883"
+ echo "[init] Using HMC5883"
fi
if mpu6000 start
then
- echo "using MPU6000"
+ echo "[init] Using MPU6000"
fi
if l3gd20 start
then
- echo "using L3GD20(H)"
+ echo "[init] Using L3GD20(H)"
fi
-if lsm303d start
+if hw_ver compare PX4FMU_V2
then
- echo "using LSM303D"
+ if lsm303d start
+ then
+ echo "[init] Using LSM303D"
+ fi
fi
# Start airspeed sensors
if meas_airspeed start
then
- echo "using MEAS airspeed sensor"
+ echo "[init] Using MEAS airspeed sensor"
else
if ets_airspeed start
then
- echo "using ETS airspeed sensor (bus 3)"
+ echo "[init] Using ETS airspeed sensor (bus 3)"
else
if ets_airspeed start -b 1
then
- echo "Using ETS airspeed sensor (bus 1)"
+ echo "[init] Using ETS airspeed sensor (bus 1)"
fi
fi
fi