From 1c6baba7d8ca3d4ee9545a60f2b5330a6a959c70 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 4 Jun 2013 12:19:09 +1000 Subject: [PATCH] autotest: add easier HIL start scripts for rover/plane --- Tools/autotest/sim_arduplane_hil.sh | 12 ++++++++++++ Tools/autotest/sim_rover_hil.sh | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100755 Tools/autotest/sim_arduplane_hil.sh create mode 100755 Tools/autotest/sim_rover_hil.sh diff --git a/Tools/autotest/sim_arduplane_hil.sh b/Tools/autotest/sim_arduplane_hil.sh new file mode 100755 index 0000000000..470037eff6 --- /dev/null +++ b/Tools/autotest/sim_arduplane_hil.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +killall -q JSBSim +pkill -f runsim.py + +set -e +set -x + +gnome-terminal -e '../Tools/autotest/jsbsim/runsim.py --home=-35.362938,149.165085,584,270' +sleep 2 + +mavproxy.py --out 127.0.0.1:14550 --load-module=HIL $* diff --git a/Tools/autotest/sim_rover_hil.sh b/Tools/autotest/sim_rover_hil.sh new file mode 100755 index 0000000000..911031d7f4 --- /dev/null +++ b/Tools/autotest/sim_rover_hil.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -x + +pkill -f sim_rover.py +set -e + +gnome-terminal -e "nice ../Tools/autotest/pysim/sim_rover.py --home=40.071374969556928,-105.22978898137808,1583.702759,246 --rate=400" +sleep 2 +mavproxy.py --aircraft=test --out 127.0.0.1:14550 --load-module=HIL $*