autotest: fixed hil mode start for sim_vehicle

This commit is contained in:
Andrew Tridgell 2015-03-13 22:33:25 +11:00
parent 73782c41a9
commit 3c9af9e474

View File

@ -150,7 +150,9 @@ kill_tasks()
}
}
if [ $START_HIL == 0 ]; then
kill_tasks
fi
trap kill_tasks SIGINT
@ -364,4 +366,6 @@ if [ $USE_MAVLINK_GIMBAL == 1 ]; then
options="$options --load-module=gimbal"
fi
mavproxy.py $options --cmd="$extra_cmd" $*
if [ $START_HIL == 0 ]; then
kill_tasks
fi