You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
973 B
33 lines
973 B
#!/bin/bash |
|
|
|
killall -q JSBSim |
|
killall -q ArduPlane.elf |
|
pkill -f runsim.py |
|
|
|
set -e |
|
set -x |
|
|
|
autotest=$(dirname $(readlink -e $0)) |
|
pushd $autotest/../../ArduPlane |
|
make clean sitl |
|
|
|
tfile=$(mktemp) |
|
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 |
|
gnome-terminal -e '../Tools/autotest/jsbsim/runsim.py --home=-35.362938,149.165085,584,270 --elevon' |
|
sleep 2 |
|
popd |
|
|
|
# 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 |
|
|
|
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 $* |
|
|
|
|