Skip to content

Commit

Permalink
remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
rayw-dronesense committed Dec 6, 2024
1 parent 0b8db63 commit 7115c9e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
12 changes: 0 additions & 12 deletions src/mavsdk/core/mavsdk_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "mavlink_channels.h"
#include "callback_list.tpp"
#include "hostname_to_ip.h"
#include "http_loader.h"

namespace mavsdk {

Expand Down Expand Up @@ -54,17 +53,6 @@ MavsdkImpl::MavsdkImpl(const Mavsdk::Configuration& configuration) :

_process_user_callbacks_thread =
new std::thread(&MavsdkImpl::process_user_callbacks_thread, this);


HttpLoader http_loader;
std::string uri = "https://github.com/Gremsy/Vio-Camera-Definition/releases/download/v2.0.3/vio_camera_f1_def.xml";
LogInfo() << "RAWR Downloading camera definition from: " << uri;
std::string camera_definition_out = "";
if (!http_loader.download_text_sync(uri, camera_definition_out)) {
LogErr() << "RAWR Failed to download camera definition.";
} else {
LogInfo() << "RAWR SUCCESS " << camera_definition_out;
}
}

MavsdkImpl::~MavsdkImpl()
Expand Down
2 changes: 0 additions & 2 deletions src/mavsdk/plugins/camera/camera_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,6 @@ void CameraImpl::process_camera_information(const mavlink_message_t& message)

if (result == Camera::Result::Success) {
LogDebug() << "Successfully loaded camera definition";
LogDebug() << "RAWR: THE CONTENT IS " << content;

if (_camera_definition_callback) {
_system_impl->call_user_callback(
Expand All @@ -1523,7 +1522,6 @@ void CameraImpl::process_camera_information(const mavlink_message_t& message)

_camera_definition.reset(new CameraDefinition());
_camera_definition->load_string(content);

refresh_params();

} else if (result == Camera::Result::ProtocolUnsupported) {
Expand Down

0 comments on commit 7115c9e

Please sign in to comment.