Hello,
I try to change TCP connection to udp in my startscript for SITL simulation running in a podman container. Up to now all tryed changes of “–uartA tcp:…“ failes or have no effect. I use MissionPlanner.
The code I use:
...
JSON_INTERFACE_TARGET="127.0.0.1"
COPTER=/ardupilot/build/sitl/bin/arducopter
BASE_DEFAULTS_COPTER="/ardupilot/default_params/copter.parm"
...
GCS_START_TCP_RANGE=13010
...
for i in $(seq $N_VEHICLES); do
idx=$(($i-1))
TCP_PORT=$(($GCS_START_TCP_RANGE + $idx * 10))
...
# What to enter here for UDP instead of TCP connection?
$COPTER --model json:$JSON_INTERFACE_TARGET --uartA tcp:$TCP_PORT \
--instance $idx --defaults $BASE_DEFAULTS_COPTER,/ardupilot/vehicle$idx/identity.parm --home=${LAT},${LON},${ALT},${DIR} &
...
done
Thanks in advance
Joe