autotest: added skid steering version of rover sim start script

This commit is contained in:
Andrew Tridgell 2013-03-15 09:52:57 +11:00
parent 6ea2130342
commit 8d8e30156f
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
#!/bin/bash
set -x
killall -q APMrover2.elf
pkill -f sim_rover.py
set -e
autotest=$(dirname $(readlink -e $0))
pushd $autotest/../../APMrover2
make clean sitl
tfile=$(mktemp)
(
echo r
) > $tfile
#gnome-terminal -e "gdb -x $tfile --args /tmp/APMrover2.build/APMrover2.elf"
gnome-terminal -e /tmp/APMrover2.build/APMrover2.elf
#gnome-terminal -e "valgrind --db-attach=yes -q /tmp/APMrover2.build/APMrover2.elf"
sleep 2
rm -f $tfile
#gnome-terminal -e "../Tools/autotest/pysim/sim_rover.py --home=-35.362938,149.165085,584,270 --rate=400"
gnome-terminal -e "../Tools/autotest/pysim/sim_rover.py --skid-steering --home=-35.362938,149.165085,584,270 --rate=400"
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