Skip to content

Commit

Permalink
SITL: configurable uxrce ip-address
Browse files Browse the repository at this point in the history
  • Loading branch information
Jari Nippula authored and jlaitine committed Oct 6, 2023
1 parent e1ffffe commit b385113
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ROMFS/px4fmu_common/init.d-posix/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,14 @@ then
# Override port if environment variable is defined
uxrce_dds_local_port="$PX4_UXRCE_DDS_LOCAL_PORT"
fi
uxrce_dds_ip="127.0.0.1"
if [ -n "$PX4_UXRCE_DDS_IP" ]
then
# Override port if environment variable is defined
uxrce_dds_ip="$PX4_UXRCE_DDS_IP"
fi

uxrce_dds_client start -t udp -h 127.0.0.1 -r $uxrce_dds_local_port -p $uxrce_dds_port $uxrce_dds_ns
uxrce_dds_client start -t udp -h $uxrce_dds_ip -r $uxrce_dds_local_port -p $uxrce_dds_port $uxrce_dds_ns

if param greater -s MNT_MODE_IN -1
then
Expand Down

0 comments on commit b385113

Please sign in to comment.