aboutsummaryrefslogtreecommitdiff
path: root/ROMFS
diff options
context:
space:
mode:
authorJulian Oes <julian@oes.ch>2013-12-02 23:01:02 +0100
committerJulian Oes <julian@oes.ch>2013-12-02 23:01:02 +0100
commit0ec609f49167e1e6857e970088b4e8de93bba032 (patch)
treea4d65c1005ca8a98216cab0bad421bdf51c228bf /ROMFS
parenta839a09834a5ab3217e794a0a98af2eeffaf571b (diff)
downloadpx4-firmware-0ec609f49167e1e6857e970088b4e8de93bba032.tar.gz
px4-firmware-0ec609f49167e1e6857e970088b4e8de93bba032.tar.bz2
px4-firmware-0ec609f49167e1e6857e970088b4e8de93bba032.zip
Bottle drop: added custom HIL startup script
Diffstat (limited to 'ROMFS')
-rw-r--r--ROMFS/px4fmu_common/init.d/901_bottle_drop_test.hil17
-rwxr-xr-xROMFS/px4fmu_common/init.d/rcS12
2 files changed, 11 insertions, 18 deletions
diff --git a/ROMFS/px4fmu_common/init.d/901_bottle_drop_test.hil b/ROMFS/px4fmu_common/init.d/901_bottle_drop_test.hil
index 060c7d0b5..472351e9e 100644
--- a/ROMFS/px4fmu_common/init.d/901_bottle_drop_test.hil
+++ b/ROMFS/px4fmu_common/init.d/901_bottle_drop_test.hil
@@ -56,17 +56,6 @@ hil mode_pwm
param set MAV_TYPE 1
#
-# Check if we got an IO
-#
-if px4io start
-then
- echo "IO started"
-else
- fmu mode_serial
- echo "FMU started"
-fi
-
-#
# Start the sensors (depends on orb, px4io)
#
sh /etc/init.d/rc.sensors
@@ -83,7 +72,11 @@ mixer load /dev/pwm_output /etc/mixers/FMU_AET.mix
fw_pos_control_l1 start
fw_att_control start
-#fmu mode_pwm
+#
+# Start IO
+#
+px4io start
+
mixer load /dev/px4io /etc/mixers/FMU_pass.mix
diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS
index 5327ee7ca..6c76f5fe9 100755
--- a/ROMFS/px4fmu_common/init.d/rcS
+++ b/ROMFS/px4fmu_common/init.d/rcS
@@ -145,6 +145,12 @@ then
sh /etc/init.d/1004_rc_fw_Rascal110.hil
set MODE custom
fi
+
+ if param compare SYS_AUTOSTART 901
+ then
+ sh /etc/init.d/901_bottle_drop_test.hil
+ set MODE custom
+ fi
if [ $MODE != custom ]
then
@@ -324,12 +330,6 @@ then
sh /etc/init.d/900_bottle_drop_test
set MODE custom
fi
-
- if param compare SYS_AUTOSTART 901
- then
- sh /etc/init.d/901_bottle_drop_test.hil
- set MODE custom
- fi
# Start any custom extensions that might be missing
if [ -f /fs/microsd/etc/rc.local ]