2011-12-12 22:50:06 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-02-06 02:00:03 -04:00
|
|
|
killall -q JSBSim
|
|
|
|
killall -q ArduPlane.elf
|
|
|
|
pkill -f runsim.py
|
|
|
|
|
2011-12-12 22:50:06 -04:00
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
|
|
|
autotest=$(dirname $(readlink -e $0))
|
|
|
|
pushd $autotest/../../ArduPlane
|
|
|
|
make clean sitl
|
|
|
|
|
2012-06-27 18:28:00 -03:00
|
|
|
tfile=$(mktemp)
|
2011-12-12 22:50:06 -04:00
|
|
|
echo r > $tfile
|
2012-05-22 06:48:19 -03:00
|
|
|
#gnome-terminal -e "gdb -x $tfile --args /tmp/ArduPlane.build/ArduPlane.elf"
|
|
|
|
gnome-terminal -e /tmp/ArduPlane.build/ArduPlane.elf
|
2012-02-12 21:38:10 -04:00
|
|
|
#gnome-terminal -e "valgrind -q /tmp/ArduPlane.build/ArduPlane.elf"
|
2011-12-12 22:50:06 -04:00
|
|
|
sleep 2
|
|
|
|
rm -f $tfile
|
2012-08-27 03:27:29 -03:00
|
|
|
gnome-terminal -e '../Tools/autotest/jsbsim/runsim.py --home=-35.362938,149.165085,584,270'
|
2011-12-12 22:50:06 -04:00
|
|
|
sleep 2
|
2011-12-15 08:34:20 -04:00
|
|
|
popd
|
2013-02-06 02:00:03 -04:00
|
|
|
|
2013-02-06 02:17:37 -04:00
|
|
|
# if you wanted to forward packets out a serial link for testing
|
|
|
|
# andropilot, then add --out /dev/serial/by-id/usb-FTDI* to your
|
|
|
|
# command line along with a baudrate. You might also like to add --map
|
|
|
|
# and --console
|
|
|
|
# for example:
|
|
|
|
# sim_arduplane.sh --out /dev/serial/by-id/usb-FTDI* --baudrate 57600 --map --console
|
2013-02-06 02:00:03 -04:00
|
|
|
|
|
|
|
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 $*
|
|
|
|
|