Bottle drop: added custom HIL startup script

This commit is contained in:
Julian Oes 2013-12-02 23:01:02 +01:00
parent a839a09834
commit 0ec609f491
2 changed files with 11 additions and 18 deletions

View File

@ -55,17 +55,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)
#
@ -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

View File

@ -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 ]