Skip to content

Commit

Permalink
Merge pull request #1905 from mavlink/pr-remove-noise
Browse files Browse the repository at this point in the history
Remove some noise
  • Loading branch information
JonasVautherin authored Sep 23, 2022
2 parents 2246656 + 7accc04 commit 7ebcc68
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/mavsdk/core/mavlink_command_sender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ void MavlinkCommandSender::receive_command_ack(mavlink_message_t message)
break;

case MAV_RESULT_DENIED:
LogWarn() << "command denied (" << work->identification.command << ").";
if (_command_debugging) {
LogDebug() << "command denied (" << work->identification.command << ").";
}
_parent.unregister_timeout_handler(work->timeout_cookie);
temp_result = {Result::Denied, NAN};
_work_queue.erase(it);
Expand Down
7 changes: 7 additions & 0 deletions src/mavsdk/core/mavsdk_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,13 @@ void MavsdkImpl::receive_message(mavlink_message_t& message, Connection* connect
}
}

if (!found_system && message.compid == MAV_COMP_ID_TELEMETRY_RADIO) {
if (_message_logging_on) {
LogDebug() << "Don't create new system just for telemetry radio";
}
return;
}

if (!found_system) {
make_system_with_component(message.sysid, message.compid);
}
Expand Down
1 change: 0 additions & 1 deletion src/mavsdk/plugins/telemetry/telemetry_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ void TelemetryImpl::request_home_position_again()
return;
}
}
LogWarn() << "Requesting Home Position Again.";
request_home_position_async();
}

Expand Down

0 comments on commit 7ebcc68

Please sign in to comment.