Skip to content

Commit

Permalink
Allow to modify uxrce_dds_client port with a env var
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde authored and beniaminopozzan committed May 10, 2023
1 parent 47e802e commit be03b7f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ROMFS/px4fmu_common/init.d-posix/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,14 @@ then
else
param set UXRCE_DDS_DOM_ID 0
fi
uxrce_dds_client start -t udp -h 127.0.0.1 -p 8888 $uxrce_dds_ns
uxrce_dds_port=8888
if [ -n "$PX4_UXRCE_DDS_PORT" ]
then
# Override port if environment variable is defined
uxrce_dds_port="$PX4_UXRCE_DDS_PORT"
fi

uxrce_dds_client start -t udp -h 127.0.0.1 -p $uxrce_dds_port $uxrce_dds_ns

if param greater -s MNT_MODE_IN -1
then
Expand Down

0 comments on commit be03b7f

Please sign in to comment.