mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 07:30:35 +08:00
support of multi uav simulation in SITL
This commit is contained in:
committed by
Lorenz Meier
parent
669e580f0a
commit
cd1e04d43c
@@ -619,7 +619,9 @@ void Simulator::pollForMAVLinkMessages(bool publish, int udp_port)
|
||||
struct sockaddr_in _myaddr;
|
||||
|
||||
if (udp_port < 1) {
|
||||
udp_port = UDP_PORT;
|
||||
int prt;
|
||||
param_get(param_find("SITL_UDP_PRT"), &prt);
|
||||
udp_port = prt;
|
||||
}
|
||||
|
||||
// try to setup udp socket for communcation with simulator
|
||||
|
||||
Reference in New Issue
Block a user