mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
fix(mavlink): remove port cap that forced instances 10+ to share port
The line `[ "$px4_instance" -gt 9 ] && udp_offboard_port_remote=14549` forced all instances above 9 to share the same offboard port, breaking multi-instance setups with 10+ drones. Without it, each instance gets a unique port 14540+i with no overlap. Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
parent
2fc70dea3e
commit
2ae4ca4bf4
@ -3,7 +3,6 @@
|
||||
|
||||
udp_offboard_port_local=$((14580+px4_instance))
|
||||
udp_offboard_port_remote=$((14540+px4_instance))
|
||||
[ "$px4_instance" -gt 9 ] && udp_offboard_port_remote=14549 # use the same ports for more than 10 instances to avoid port overlaps
|
||||
udp_onboard_payload_port_local=$((14280+px4_instance))
|
||||
udp_onboard_payload_port_remote=$((14030+px4_instance))
|
||||
udp_onboard_gimbal_port_local=$((13030+px4_instance))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user