aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/scripts/rc.hil
diff options
context:
space:
mode:
Diffstat (limited to 'ROMFS/scripts/rc.hil')
-rw-r--r--ROMFS/scripts/rc.hil11
1 files changed, 11 insertions, 0 deletions
diff --git a/ROMFS/scripts/rc.hil b/ROMFS/scripts/rc.hil
index 3b37ac26b..980b78edd 100644
--- a/ROMFS/scripts/rc.hil
+++ b/ROMFS/scripts/rc.hil
@@ -36,6 +36,17 @@ param set MAV_TYPE 1
commander start
#
+# Check if we got an IO
+#
+if [ px4io start ]
+then
+ echo "IO started"
+else
+ fmu mode_serial
+ echo "FMU started"
+end
+
+#
# Start the sensors (depends on orb, px4io)
#
sh /etc/init.d/rc.sensors