autotest: example startup scripts for simulators

This commit is contained in:
Andrew Tridgell 2011-12-13 13:50:06 +11:00
parent 77c791fb79
commit 2c7e74b7a1
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,18 @@
#!/bin/bash
set -e
set -x
autotest=$(dirname $(readlink -e $0))
pushd $autotest/../../ArduCopter
make clean sitl
tfile=$(tempfile)
echo r > $tfile
gnome-terminal -e "gdb -x $tfile --args /tmp/ArduCopter.build/ArduCopter.elf"
sleep 2
rm -f $tfile
gnome-terminal -e '../Tools/autotest/pysim/sim_quad.py --home=-35.362938,149.165085,584,270'
sleep 2
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 --quadcopter

17
Tools/autotest/sim_arduplane.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
set -e
set -x
autotest=$(dirname $(readlink -e $0))
pushd $autotest/../../ArduPlane
make clean sitl
tfile=$(tempfile)
echo r > $tfile
gnome-terminal -e "gdb -x $tfile --args /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'
sleep 2
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