mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 11:53:34 +08:00
Remove debug output
This commit is contained in:
@@ -556,11 +556,10 @@ void Simulator::pollForMAVLinkMessages(bool publish)
|
|||||||
|
|
||||||
bool no_sim_data = true;
|
bool no_sim_data = true;
|
||||||
|
|
||||||
while (!px4_exit_requested() && no_sim_data/*pret <= 0 || (pstart_time == 0 || hrt_system_time() - pstart_time < 100000000)*/) {
|
while (!px4_exit_requested() && no_sim_data) {
|
||||||
pret = ::poll(&fds[0], fd_count, 100);
|
pret = ::poll(&fds[0], fd_count, 100);
|
||||||
|
|
||||||
if (fds[0].revents & POLLIN) {
|
if (fds[0].revents & POLLIN) {
|
||||||
PX4_WARN(".");
|
|
||||||
pstart_time = hrt_system_time();
|
pstart_time = hrt_system_time();
|
||||||
len = recvfrom(_fd, _buf, sizeof(_buf), 0, (struct sockaddr *)&_srcaddr, &_addrlen);
|
len = recvfrom(_fd, _buf, sizeof(_buf), 0, (struct sockaddr *)&_srcaddr, &_addrlen);
|
||||||
// send first controls
|
// send first controls
|
||||||
@@ -574,7 +573,6 @@ void Simulator::pollForMAVLinkMessages(bool publish)
|
|||||||
if (mavlink_parse_char(MAVLINK_COMM_0, _buf[i], &msg, &udp_status)) {
|
if (mavlink_parse_char(MAVLINK_COMM_0, _buf[i], &msg, &udp_status)) {
|
||||||
// have a message, handle it
|
// have a message, handle it
|
||||||
handle_message(&msg, publish);
|
handle_message(&msg, publish);
|
||||||
warnx("Got: %u", msg.msgid);
|
|
||||||
|
|
||||||
if (msg.msgid != 0) {
|
if (msg.msgid != 0) {
|
||||||
PX4_INFO("Got initial simuation data, running sim..");
|
PX4_INFO("Got initial simuation data, running sim..");
|
||||||
|
|||||||
Reference in New Issue
Block a user