ROMFS/Tools: switch to TCP connection for SITL

This switches from UDP to TCP to connect to jMAVSim.
This commit is contained in:
Julian Oes
2018-11-13 15:22:35 +01:00
parent 6d7fb232dd
commit b436f3dd56
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$SCRIPT_DIR/jMAVSim"
udp_port=14560
tcp_port=4560
extra_args=
baudrate=921600
device=
@@ -22,7 +22,7 @@ while getopts ":b:d:p:qr:f:i:" opt; do
ip="$OPTARG"
;;
p)
udp_port=$OPTARG
tcp_port=$OPTARG
;;
q)
extra_args="$extra_args -qgc"
@@ -41,7 +41,7 @@ while getopts ":b:d:p:qr:f:i:" opt; do
done
if [ "$device" == "" ]; then
device="-udp $ip:$udp_port"
device="-tcp $ip:$tcp_port"
else
device="-serial $device $baudrate"
fi