mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-05 23:43:58 -04:00
SITL: Make socket more verbose
This commit is contained in:
parent
567a8d68e5
commit
5b8c89225a
@ -100,6 +100,7 @@ void SITL_State::_sitl_setup(const char *home_str)
|
|||||||
fg_socket.connect("127.0.0.1", _fg_view_port);
|
fg_socket.connect("127.0.0.1", _fg_view_port);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fprintf(stdout, "Using Irlock at port : %d\n", _irlock_port);
|
||||||
_sitl->irlock_port = _irlock_port;
|
_sitl->irlock_port = _irlock_port;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -422,6 +422,7 @@ void Aircraft::set_interface_ports(const char* address, const int port_in, const
|
|||||||
fprintf(stderr, "Abording launch...\n");
|
fprintf(stderr, "Abording launch...\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
printf("Bind %s:%d for SITL in\n", "127.0.0.1", port_in);
|
||||||
socket_in.reuseaddress();
|
socket_in.reuseaddress();
|
||||||
socket_in.set_blocking(false);
|
socket_in.set_blocking(false);
|
||||||
|
|
||||||
@ -430,6 +431,7 @@ void Aircraft::set_interface_ports(const char* address, const int port_in, const
|
|||||||
fprintf(stderr, "Abording launch...\n");
|
fprintf(stderr, "Abording launch...\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
printf("Bind %s:%d for SITL out\n", address, port_out);
|
||||||
socket_out.reuseaddress();
|
socket_out.reuseaddress();
|
||||||
socket_out.set_blocking(false);
|
socket_out.set_blocking(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user