Skip to content

Commit

Permalink
Cleanup port handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaeyoung-Lim authored and bkueng committed Feb 18, 2020
1 parent fc61d1c commit 30cc3a1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ROMFS/px4fmu_common/init.d-posix/rcS
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,8 @@ fi
param set MAV_SYS_ID $((px4_instance+1))
simulator_tcp_port=$((4560+px4_instance))
udp_offboard_port_local=$((14580+px4_instance))
if [ $px4_instance > 9]
udp_offboard_port_remote=14549
then
udp_offboard_port_remote=$((14540+px4_instance))
fi
udp_offboard_port_remote=$((14540+px4_instance))
[ $px4_instance > 9] && udp_offboard_port_remote=14549 # use the same ports for more than 10 instances to avoid port overlaps
udp_gcs_port_local=$((18570+px4_instance))


Expand Down

0 comments on commit 30cc3a1

Please sign in to comment.