From de2bcda3db5eb026c2d093aee9149c0d62d1c438 Mon Sep 17 00:00:00 2001
From: Andrew Tridgell <tridge@samba.org>
Date: Fri, 20 Apr 2012 09:55:32 +1000
Subject: [PATCH] sitl: make it easy to run sitl for MAVLink 1.0

---
 Tools/autotest/sim_arduplane10.sh | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100755 Tools/autotest/sim_arduplane10.sh

diff --git a/Tools/autotest/sim_arduplane10.sh b/Tools/autotest/sim_arduplane10.sh
new file mode 100755
index 000000000..a9c3279bf
--- /dev/null
+++ b/Tools/autotest/sim_arduplane10.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+set -e
+set -x
+
+autotest=$(dirname $(readlink -e $0))
+pushd $autotest/../../ArduPlane
+make clean sitl-mavlink10
+
+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=-35.362938,149.165085,584,270 --wind=5,180,0.2'
+sleep 2
+popd
+mavproxy.py --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 --mav10
-- 
GitLab