2012-08-14 04:16:49 -03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
killall -q ArduPlane.elf
|
|
|
|
pkill -f runsim.py
|
2013-01-08 22:20:15 -04:00
|
|
|
killall -q JSBSim
|
2012-08-14 04:16:49 -03:00
|
|
|
set -e
|
|
|
|
|
|
|
|
autotest=$(dirname $(readlink -e $0))
|
|
|
|
pushd $autotest/../../ArduPlane
|
|
|
|
make clean obc-sitl
|
|
|
|
|
2013-01-08 21:24:45 -04:00
|
|
|
tfile=$(mktemp)
|
2012-08-14 04:16:49 -03:00
|
|
|
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
|
2012-08-27 03:27:29 -03:00
|
|
|
gnome-terminal -e '../Tools/autotest/jsbsim/runsim.py --home=-26.582218,151.840113,440.3,169'
|
2012-08-14 04:16:49 -03:00
|
|
|
sleep 2
|
|
|
|
popd
|
2013-08-09 22:59:12 -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 $*
|
|
|
|
|