From d953c0073155853426cf5007554de7530c407cfb Mon Sep 17 00:00:00 2001 From: James Goppert Date: Wed, 28 Nov 2012 16:08:01 -0500 Subject: [PATCH] Minor compile fixes. --- qgroundcontrol.pri | 1 + src/comm/QGCFlightGearLink.cc | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/qgroundcontrol.pri b/qgroundcontrol.pri index 6bc3832..288672c 100644 --- a/qgroundcontrol.pri +++ b/qgroundcontrol.pri @@ -172,6 +172,7 @@ macx|macx-g++42|macx-g++|macx-llvm: { linux-g++|linux-g++-64{ CONFIG -= console + DEFINES += __STDC_LIMIT_MACROS release { DEFINES += QT_NO_DEBUG diff --git a/src/comm/QGCFlightGearLink.cc b/src/comm/QGCFlightGearLink.cc index ce8e2a7..40816b4 100644 --- a/src/comm/QGCFlightGearLink.cc +++ b/src/comm/QGCFlightGearLink.cc @@ -338,7 +338,12 @@ bool QGCFlightGearLink::connectSimulation() connect(mav, SIGNAL(hilControlsChanged(uint64_t, float, float, float, float, uint8_t, uint8_t)), this, SLOT(updateControls(uint64_t,float,float,float,float,uint8_t,uint8_t))); connect(this, SIGNAL(hilStateChanged(uint64_t,float,float,float,float,float,float,int32_t,int32_t,int32_t,int16_t,int16_t,int16_t,int16_t,int16_t,int16_t)), mav, SLOT(sendHilState(uint64_t,float,float,float,float,float,float,int32_t,int32_t,int32_t,int16_t,int16_t,int16_t,int16_t,int16_t,int16_t))); - mav->startHil(); + + UAS* uas = dynamic_cast(mav); + if (uas) + { + uas->startHil(); + } //connect(&refreshTimer, SIGNAL(timeout()), this, SLOT(sendUAVUpdate())); // Catch process error