Skip to content

Commit

Permalink
Merge pull request #1250 from fspindle/fix_warnings_mavsdk
Browse files Browse the repository at this point in the history
Fix warnings mavsdk
  • Loading branch information
fspindle authored Oct 11, 2023
2 parents e5a2380 + 2c129ef commit e720aee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
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

0 comments on commit e720aee

Please sign in to comment.