Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings mavsdk #1250

Merged
merged 2 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions modules/robot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@ if(USE_UR_RTDE)
vp_set_source_file_compile_flag(src/real-robot/universal-robots/vpRobotUniversalRobots.cpp -Wno-unused-parameter)
endif()

if(USE_MAVSDK)
vp_set_source_file_compile_flag(src/real-robot/mavsdk/vpRobotMavsdk.cp -Wno-unused-but-set-variable)
endif()

vp_set_source_file_compile_flag(src/light/vpRingLight.cpp -Wno-strict-overflow)
vp_set_source_file_compile_flag(src/wireframe-simulator/vpClipping.cpp -Wno-strict-overflow)
vp_set_source_file_compile_flag(src/wireframe-simulator/vpBoundio.cpp -Wno-strict-overflow)
Expand Down
15 changes: 1 addition & 14 deletions modules/robot/src/real-robot/mavsdk/vpRobotMavsdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ class vpRobotMavsdk::vpRobotMavsdkImpl
calibration_promise.set_value();
break;
}
};
};
}

void calibrate_gyro(mavsdk::Calibration &calibration)
Expand Down Expand Up @@ -1086,18 +1086,6 @@ class vpRobotMavsdk::vpRobotMavsdkImpl

void setVerbose(bool verbose) { m_verbose = verbose; }

// void waitSystemReady()
// {
// if (! m_system_ready)
// {
// while (!m_telemetry.get()->health_all_ok()) {
// std::cout << "Waiting for system to be ready\n";
// sleep_for(seconds(1));
// }
// std::cout << "System is ready\n";
// }
// }

private:
//*** Attributes ***//
std::string m_address {}; ///< Ip address of the robot to discover on the network
Expand All @@ -1112,7 +1100,6 @@ class vpRobotMavsdk::vpRobotMavsdkImpl
MAV_TYPE m_mav_type {}; // Vehicle type
bool m_has_flying_capability { false };

bool m_system_ready { false };
float m_position_incertitude { 0.05 };
float m_yaw_incertitude { 0.09 }; // 5 deg
bool m_verbose { false };
Expand Down
Loading