mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
fix code style for Travis
This commit is contained in:
@@ -474,8 +474,9 @@ void Simulator::pollForMAVLinkMessages(bool publish, int udp_port)
|
||||
// udp socket data
|
||||
struct sockaddr_in _myaddr;
|
||||
|
||||
if (udp_port < 1)
|
||||
if (udp_port < 1) {
|
||||
udp_port = UDP_PORT;
|
||||
}
|
||||
|
||||
// try to setup udp socket for communcation with simulator
|
||||
memset((char *)&_myaddr, 0, sizeof(_myaddr));
|
||||
@@ -534,7 +535,7 @@ void Simulator::pollForMAVLinkMessages(bool publish, int udp_port)
|
||||
// wait for first data from simulator and respond with first controls
|
||||
// this is important for the UDP communication to work
|
||||
int pret = -1;
|
||||
PX4_INFO("Waiting for initial data on UDP port %i. Please start the flight simulator to proceed..",udp_port);
|
||||
PX4_INFO("Waiting for initial data on UDP port %i. Please start the flight simulator to proceed..", udp_port);
|
||||
|
||||
uint64_t pstart_time = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user