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 { ...@@ -80,15 +80,6 @@ win32 {
QMAKE_MOC = "$$(QTDIR)/bin/moc.exe" QMAKE_MOC = "$$(QTDIR)/bin/moc.exe"
QMAKE_RCC = "$$(QTDIR)/bin/rcc.exe" QMAKE_RCC = "$$(QTDIR)/bin/rcc.exe"
QMAKE_QMAKE = "$$(QTDIR)/bin/qmake.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 { macx {
......
...@@ -115,8 +115,8 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(), ...@@ -115,8 +115,8 @@ UAS::UAS(MAVLinkProtocol* protocol, int id) : UASInterface(),
altitudeAMSL(0.0), altitudeAMSL(0.0),
altitudeRelative(0.0), altitudeRelative(0.0),
airSpeed(NAN), airSpeed(std::numeric_limits<double>::quiet_NaN()),
groundSpeed(NAN), groundSpeed(std::numeric_limits<double>::quiet_NaN()),
speedX(0.0), speedX(0.0),
speedY(0.0), speedY(0.0),
......
...@@ -40,6 +40,8 @@ This file is part of the QGROUNDCONTROL project ...@@ -40,6 +40,8 @@ This file is part of the QGROUNDCONTROL project
#include "protocol.h" #include "protocol.h"
#include "QGC.h" #include "QGC.h"
const float DebugConsole::inDataRateThreshold = 0.4f;
DebugConsole::DebugConsole(QWidget *parent) : DebugConsole::DebugConsole(QWidget *parent) :
QWidget(parent), QWidget(parent),
currLink(NULL), currLink(NULL),
......
...@@ -139,7 +139,7 @@ protected: ...@@ -139,7 +139,7 @@ protected:
QTimer snapShotTimer; ///< Timer for measuring traffic snapshots QTimer snapShotTimer; ///< Timer for measuring traffic snapshots
static const int snapShotInterval = 500; ///< Set the time between UI updates for the data rate (ms) static const int snapShotInterval = 500; ///< Set the time between UI updates for the data rate (ms)
float lowpassInDataRate; ///< Lowpass filtered data rate (kilobytes/s) 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) float lowpassOutDataRate; ///< Low-pass filtered outgoing data rate (kilobytes/s)
QStringList commandHistory; QStringList commandHistory;
QString currCommand; QString currCommand;
......
...@@ -125,15 +125,15 @@ PrimaryFlightDisplay::PrimaryFlightDisplay(int width, int height, QWidget *paren ...@@ -125,15 +125,15 @@ PrimaryFlightDisplay::PrimaryFlightDisplay(int width, int height, QWidget *paren
pitch(0), pitch(0),
heading(0), heading(0),
altitudeAMSL(NAN), altitudeAMSL(std::numeric_limits<double>::quiet_NaN()),
altitudeRelative(NAN), altitudeRelative(std::numeric_limits<double>::quiet_NaN()),
groundSpeed(NAN), groundSpeed(std::numeric_limits<double>::quiet_NaN()),
airSpeed(NAN), airSpeed(std::numeric_limits<double>::quiet_NaN()),
climbRate(NAN), climbRate(std::numeric_limits<double>::quiet_NaN()),
navigationCrosstrackError(0), navigationCrosstrackError(0),
navigationTargetBearing(NAN), navigationTargetBearing(std::numeric_limits<double>::quiet_NaN()),
layout(COMPASS_INTEGRATED), layout(COMPASS_INTEGRATED),
style(OVERLAY_HSI), style(OVERLAY_HSI),
...@@ -291,19 +291,19 @@ void PrimaryFlightDisplay::updateAttitude(UASInterface* uas, double roll, double ...@@ -291,19 +291,19 @@ void PrimaryFlightDisplay::updateAttitude(UASInterface* uas, double roll, double
Q_UNUSED(timestamp); Q_UNUSED(timestamp);
// Called from UAS.cc l. 616 // Called from UAS.cc l. 616
if (isinf(roll)) { if (isinf(roll)) {
this->roll = NAN; this->roll = std::numeric_limits<double>::quiet_NaN();
} else { } else {
this->roll = roll * (180.0 / M_PI); this->roll = roll * (180.0 / M_PI);
} }
if (isinf(pitch)) { if (isinf(pitch)) {
this->pitch = NAN; this->pitch = std::numeric_limits<double>::quiet_NaN();
} else { } else {
this->pitch = pitch * (180.0 / M_PI); this->pitch = pitch * (180.0 / M_PI);
} }
if (isinf(yaw)) { if (isinf(yaw)) {
this->heading = NAN; this->heading = std::numeric_limits<double>::quiet_NaN();
} else { } else {
yaw = yaw * (180.0 / M_PI); yaw = yaw * (180.0 / M_PI);
if (yaw<0) yaw+=360; 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