From 3c9af9e4743ae85274a516036f4bb595eeb1efae Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 13 Mar 2015 22:33:25 +1100 Subject: [PATCH] autotest: fixed hil mode start for sim_vehicle --- Tools/autotest/sim_vehicle.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tools/autotest/sim_vehicle.sh b/Tools/autotest/sim_vehicle.sh index b9a7bf153e..a288cf6ca8 100755 --- a/Tools/autotest/sim_vehicle.sh +++ b/Tools/autotest/sim_vehicle.sh @@ -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