From 533aab4f6693ab2b18a5e1c46ba460a503a1e909 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 14 Aug 2012 17:16:49 +1000 Subject: [PATCH] SITL: added a test script for starting in Kingaroy we use this for OBC testing --- Tools/autotest/sim_arduplane_kingaroy.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 Tools/autotest/sim_arduplane_kingaroy.sh diff --git a/Tools/autotest/sim_arduplane_kingaroy.sh b/Tools/autotest/sim_arduplane_kingaroy.sh new file mode 100755 index 0000000000..665762eaba --- /dev/null +++ b/Tools/autotest/sim_arduplane_kingaroy.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -x + +killall -q ArduPlane.elf +pkill -f runsim.py +set -e + +autotest=$(dirname $(readlink -e $0)) +pushd $autotest/../../ArduPlane +make clean obc-sitl + +tfile=$(tempfile) +echo r > $tfile +#gnome-terminal -e "gdb -x $tfile --args /tmp/ArduPlane.build/ArduPlane.elf" +gnome-terminal -e /tmp/ArduPlane.build/ArduPlane.elf +#gnome-terminal -e "valgrind -q /tmp/ArduPlane.build/ArduPlane.elf" +sleep 2 +rm -f $tfile +gnome-terminal -e '../Tools/autotest/jsbsim/runsim.py --home=-26.582218,151.840113,440.3,169 --wind=5,180,0' +sleep 2 +popd +mavproxy.py --aircraft=test --master tcp:127.0.0.1:5760 --sitl 127.0.0.1:5501 --out 127.0.0.1:14550 --out 127.0.0.1:14551