px4fmu rcS: start sensors in hil mode if HIL is set, don't load rc.sensors

This makes sure no sensor publishes sensor topics, instead they will be
published from mavlink.
This commit is contained in:
Beat Küng
2017-03-03 17:40:02 +01:00
committed by Lorenz Meier
parent 881f2d2d36
commit 8957b473a8

View File

@@ -399,9 +399,7 @@ then
then
set FMU_MODE serial
fi
unset HIL
else
unset HIL
gps start
fi
@@ -420,7 +418,13 @@ then
#
# Sensors System (start before Commander so Preflight checks are properly run)
#
sh /etc/init.d/rc.sensors
if [ $HIL == yes ]
then
sensors start -hil
else
sh /etc/init.d/rc.sensors
fi
unset HIL
# Needs to be this early for in-air-restarts
if [ $OUTPUT_MODE == hil ]