mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00: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