diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index 9b7ce9a6fd..60129896bb 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -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 ]