support of multi uav simulation in SITL

This commit is contained in:
Mohamed Abdelkader Zahana
2017-05-13 22:51:46 +03:00
committed by Lorenz Meier
parent 669e580f0a
commit cd1e04d43c
8 changed files with 503 additions and 1 deletions

View File

@@ -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