Skip to content

Commit 959587d

Browse files
authored
fix: let UXRCE DDS agent IP to be set via parameter in SITL (#25231)
* Read XRCE_DDS IP from ENV * just remove the -h flag from the launch command * add 127.0.0.1 as default IP * add default value for IP
1 parent 539ef8b commit 959587d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • ROMFS/px4fmu_common/init.d-posix

ROMFS/px4fmu_common/init.d-posix/rcS

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ param set-default SYS_FAILURE_EN 1
190190
# does not go below 50% by default, but failure injection can trigger failsafes.
191191
param set-default COM_LOW_BAT_ACT 3
192192

193+
# set default IP to localhost
194+
param set-default UXRCE_DDS_AG_IP 2130706433 # 127.0.0.1
195+
193196

194197
# Adapt timeout parameters if simulation runs faster or slower than realtime.
195198
if [ -n "$PX4_SIM_SPEED_FACTOR" ]; then
@@ -319,7 +322,7 @@ then
319322
uxrce_dds_port="$PX4_UXRCE_DDS_PORT"
320323
fi
321324

322-
uxrce_dds_client start -t udp -h 127.0.0.1 -p $uxrce_dds_port $uxrce_dds_ns
325+
uxrce_dds_client start -t udp -p $uxrce_dds_port $uxrce_dds_ns
323326

324327
if param greater -s MNT_MODE_IN -1
325328
then

0 commit comments

Comments
 (0)