diff --git a/qgroundcontrol.pri b/qgroundcontrol.pri index 874e48fee3afe8631bdf648232bde0400b856e3b..35789238296a666aeef1b4846671184cce192439 100644 --- a/qgroundcontrol.pri +++ b/qgroundcontrol.pri @@ -320,8 +320,14 @@ win32-msvc2008 { message(Building for Windows Visual Studio 2008 (32bit)) + # QAxContainer support is needed for the Internet Control + # element showing the Google Earth window CONFIG += qaxcontainer + # The EIGEN library needs this define + # to make the internal min/max functions work + DEFINES += NOMINMAX + # QWebkit is not needed on MS-Windows compilation environment CONFIG -= webkit diff --git a/src/QGC.h b/src/QGC.h index 6ddd5fc67fd9641221b4d26192496239550bd395..9a1b442d176de3bc7818d086c4cc2f8fa705880f 100644 --- a/src/QGC.h +++ b/src/QGC.h @@ -33,9 +33,22 @@ /* Windows fixes */ #ifdef _MSC_VER -#include -#define isnan(x) _isnan(x) -#define isinf(x) (!_finite(x)) +/* Needed define for Eigen */ +//#define NOMINMAX +#include +template +inline bool isnan(T value) +{ + return value != value; + +} + +// requires #include +template +inline bool isinf(T value) +{ + return std::numeric_limits::has_infinity && (value == std::numeric_limits::infinity() || (-1*value) == std::numeric_limits::infinity()); +} #else #include #ifndef isnan diff --git a/src/comm/MAVLinkSimulationWaypointPlanner.cc b/src/comm/MAVLinkSimulationWaypointPlanner.cc index f2e0acc4836668468b816303cd2e7f3970fdb35a..d78b4d5bfe0e96d38f1a5fd497b2f83474956eb0 100644 --- a/src/comm/MAVLinkSimulationWaypointPlanner.cc +++ b/src/comm/MAVLinkSimulationWaypointPlanner.cc @@ -820,7 +820,7 @@ void MAVLinkSimulationWaypointPlanner::mavlink_handler (const mavlink_message_t* mavlink_msg_action_decode(msg, &action); if(action.target == systemid) { if (verbose) qDebug("Waypoint: received message with action %d\n", action.action); - switch (action.action) { +// switch (action.action) { // case MAV_ACTION_LAUNCH: // if (verbose) std::cerr << "Launch received" << std::endl; // current_active_wp_id = 0; @@ -847,10 +847,10 @@ void MAVLinkSimulationWaypointPlanner::mavlink_handler (const mavlink_message_t* // default: // if (verbose) std::cerr << "Unknown action received with id " << action.action << ", no action taken" << std::endl; // break; - } +// } } break; - } + } case MAVLINK_MSG_ID_WAYPOINT_ACK: { mavlink_waypoint_ack_t wpa; diff --git a/src/uas/QGCUASParamManager.cc b/src/uas/QGCUASParamManager.cc index 82ea6f514323f46d47c65799708ce2771c874d64..d6e9a6bc47befe46296d8df0a4faefc3cba3bff4 100644 --- a/src/uas/QGCUASParamManager.cc +++ b/src/uas/QGCUASParamManager.cc @@ -20,7 +20,7 @@ QGCUASParamManager::QGCUASParamManager(UASInterface* uas, QWidget *parent) : */ void QGCUASParamManager::requestParameterListUpdate(int component) { - + Q_UNUSED(component); } diff --git a/src/ui/HUD.cc b/src/ui/HUD.cc index 3a5ac60a4d0fdcc2d01127844e27263a2981f662..e186b0a2dc4e31bb8ef588819e2972672569bba5 100644 --- a/src/ui/HUD.cc +++ b/src/ui/HUD.cc @@ -51,20 +51,6 @@ This file is part of the QGROUNDCONTROL project #define GL_MULTISAMPLE 0x809D #endif -template -inline bool isnan(T value) -{ - return value != value; - -} - -// requires #include -template -inline bool isinf(T value) -{ - return std::numeric_limits::has_infinity && (value == std::numeric_limits::infinity() || (-1*value) == std::numeric_limits::infinity()); -} - /** * @warning The HUD widget will not start painting its content automatically * to update the view, start the auto-update by calling HUD::start().