2012-11-27 09:07:15 -04:00
|
|
|
#!/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
|
|
|
|
|
2013-01-08 21:24:45 -04:00
|
|
|
tfile=$(mktemp)
|
2012-11-27 09:07:15 -04:00
|
|
|
(
|
|
|
|
echo r
|
|
|
|
) > $tfile
|
|
|
|
#gnome-terminal -e "gdb -x $tfile --args /tmp/APMrover2.build/APMrover2.elf"
|
2013-03-21 21:22:15 -03:00
|
|
|
gnome-terminal -e "nice /tmp/APMrover2.build/APMrover2.elf"
|
2012-11-27 09:07:15 -04:00
|
|
|
#gnome-terminal -e "valgrind --db-attach=yes -q /tmp/APMrover2.build/APMrover2.elf"
|
|
|
|
sleep 2
|
|
|
|
rm -f $tfile
|
2013-05-16 21:37:11 -03:00
|
|
|
gnome-terminal -e "nice ../Tools/autotest/pysim/sim_rover.py --home=40.071374969556928,-105.22978898137808,1583.702759,246 --rate=400"
|
2012-11-27 09:07:15 -04:00
|
|
|
sleep 2
|
|
|
|
popd
|
2013-04-18 21:24:47 -03:00
|
|
|
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 $*
|