2023-06-13 00:30:12 -03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# two planes flying together doing aerobatics
|
|
|
|
|
|
|
|
# assume we start the script from the root directory
|
|
|
|
ROOTDIR=$PWD
|
|
|
|
PLANE=$ROOTDIR/build/sitl/bin/arduplane
|
|
|
|
|
|
|
|
LOC1="-35.36274643,149.16513199,585,353.8"
|
|
|
|
LOC2="-35.36274593,149.16516256,585,353.8"
|
|
|
|
|
|
|
|
[ -x "$PLANE" ] || {
|
|
|
|
./waf configure --board sitl --debug
|
|
|
|
./waf plane
|
|
|
|
}
|
|
|
|
|
|
|
|
# setup multicast
|
2023-12-11 14:51:04 -04:00
|
|
|
#SERIAL0="tcp:0"
|
|
|
|
SERIAL0="mcast:"
|
2023-06-13 00:30:12 -03:00
|
|
|
|
|
|
|
PLANE_DEFAULTS="$ROOTDIR/Tools/autotest/models/plane-3d.parm"
|
|
|
|
|
2023-12-11 14:51:04 -04:00
|
|
|
(cd ArduPlane/AeroBatics1 && $PLANE --instance 1 --home $LOC1 --model plane-3d --serial0 $SERIAL0 --defaults $PLANE_DEFAULTS) &
|
|
|
|
(cd ArduPlane/AeroBatics2 && $PLANE --instance 2 --home $LOC2 --model plane-3d --serial0 $SERIAL0 --defaults $PLANE_DEFAULTS) &
|
2023-06-13 00:30:12 -03:00
|
|
|
|
|
|
|
wait
|