Commit 87294969 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #442 from DonLakeFlyer/BrokenWindowsBuild

Fix broken Windows build
parents 4c76e1f8 33242c70
......@@ -80,15 +80,6 @@ win32 {
QMAKE_MOC = "$$(QTDIR)/bin/moc.exe"
QMAKE_RCC = "$$(QTDIR)/bin/rcc.exe"
QMAKE_QMAKE = "$$(QTDIR)/bin/qmake.exe"
# Build QAX for GoogleEarth API access
!exists( $(QTDIR)/src/activeqt/Makefile ) {
message( Making QAx (ONE TIME) )
system( cd $$(QTDIR)\\src\\activeqt && $$(QTDIR)\\bin\\qmake.exe )
system( cd $$(QTDIR)\\src\\activeqt\\container && $$(QTDIR)\\bin\\qmake.exe )
system( cd $$(QTDIR)\\src\\activeqt\\control && $$(QTDIR)\\bin\\qmake.exe )
system( cd $$(QTDIR)\\src\\activeqt && nmake )
}
}
macx {
......
......@@ -115,8 +115,8 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
altitudeAMSL(0.0),
altitudeRelative(0.0),
airSpeed(NAN),
groundSpeed(NAN),
airSpeed(std::numeric_limits<double>::quiet_NaN()),
groundSpeed(std::numeric_limits<double>::quiet_NaN()),
speedX(0.0),
speedY(0.0),
......
......@@ -40,6 +40,8 @@ This file is part of the QGROUNDCONTROL project
#include "protocol.h"
#include "QGC.h"
const float DebugConsole::inDataRateThreshold = 0.4f;
DebugConsole::DebugConsole(QWidget *parent) :
QWidget(parent),
currLink(NULL),
......
......@@ -139,7 +139,7 @@ protected:
QTimer snapShotTimer; ///< Timer for measuring traffic snapshots
static const int snapShotInterval = 500; ///< Set the time between UI updates for the data rate (ms)
float lowpassInDataRate; ///< Lowpass filtered data rate (kilobytes/s)
static const float inDataRateThreshold = 0.4; ///< Threshold where to enable auto-hold (kilobytes/s)
static const float inDataRateThreshold; ///< Threshold where to enable auto-hold (kilobytes/s)
float lowpassOutDataRate; ///< Low-pass filtered outgoing data rate (kilobytes/s)
QStringList commandHistory;
QString currCommand;
......
......@@ -125,15 +125,15 @@ PrimaryFlightDisplay::PrimaryFlightDisplay(int width, int height, QWidget *paren
pitch(0),
heading(0),
altitudeAMSL(NAN),
altitudeRelative(NAN),
altitudeAMSL(std::numeric_limits<double>::quiet_NaN()),
altitudeRelative(std::numeric_limits<double>::quiet_NaN()),
groundSpeed(NAN),
airSpeed(NAN),
climbRate(NAN),
groundSpeed(std::numeric_limits<double>::quiet_NaN()),
airSpeed(std::numeric_limits<double>::quiet_NaN()),
climbRate(std::numeric_limits<double>::quiet_NaN()),
navigationCrosstrackError(0),
navigationTargetBearing(NAN),
navigationTargetBearing(std::numeric_limits<double>::quiet_NaN()),
layout(COMPASS_INTEGRATED),
style(OVERLAY_HSI),
......@@ -291,19 +291,19 @@ void PrimaryFlightDisplay::updateAttitude(UASInterface* uas, double roll, double
Q_UNUSED(timestamp);
// Called from UAS.cc l. 616
if (isinf(roll)) {
this->roll = NAN;
this->roll = std::numeric_limits<double>::quiet_NaN();
} else {
this->roll = roll * (180.0 / M_PI);
}
if (isinf(pitch)) {
this->pitch = NAN;
this->pitch = std::numeric_limits<double>::quiet_NaN();
} else {
this->pitch = pitch * (180.0 / M_PI);
}
if (isinf(yaw)) {
this->heading = NAN;
this->heading = std::numeric_limits<double>::quiet_NaN();
} else {
yaw = yaw * (180.0 / M_PI);
if (yaw<0) yaw+=360;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment