Commit e540ddb9 authored by Bryant's avatar Bryant

RT-LAB support now indicated by QGC_RTLAB_ENABLED macro.

parent 1ea5313b
......@@ -459,11 +459,12 @@ contains(DEFINES, DISABLE_3DMOUSE) {
#
contains(DEFINES, DISABLE_RTLAB) {
message("Skipping support for RT-LAB (manual override)")
DEFINES -= DISABLE_RTLAB
} else:WindowsBuild {
exists(src/lib/opalrt/OpalApi.h) : exists(C:/OPAL-RT/RT-LAB7.2.4/Common/bin) {
message("Including support for Opal-RT")
message("Including support for RT-LAB")
DEFINES += OPAL_RT
DEFINES += QGC_RTLAB_ENABLED
INCLUDEPATH +=
src/lib/opalrt
......
......@@ -48,7 +48,7 @@ This file is part of the QGROUNDCONTROL project
#include "QGCWelcomeMainWindow.h"
#include "GAudioOutput.h"
#ifdef OPAL_RT
#ifdef QGC_RTLAB_ENABLED
#include "OpalLink.h"
#endif
#include "UDPLink.h"
......@@ -180,7 +180,7 @@ QGCCore::QGCCore(bool firstStart, int &argc, char* argv[]) : QApplication(argc,
LinkManager::instance()->add(slink);
}
#ifdef OPAL_RT
#ifdef QGC_RTLAB_ENABLED
// Add OpalRT Link, but do not connect
OpalLink* opalLink = new OpalLink();
MainWindow::instance()->addLink(opalLink);
......
......@@ -40,7 +40,7 @@ This file is part of the PIXHAWK project
#include "UASManager.h"
#include "LinkManager.h"
/*#include "ViconTarsusProtocol.h" */
#ifdef OPAL_RT
#ifdef QGC_RTLAB_ENABLED
#include "OpalLink.h"
......
......@@ -46,7 +46,7 @@ This file is part of the QGROUNDCONTROL project
#include "XbeeLink.h"
#include "XbeeConfigurationWindow.h"
#endif // QGC_XBEE_ENABLED
#ifdef OPAL_RT
#ifdef QGC_RTLAB_ENABLED
#include "OpalLink.h"
#include "OpalLinkConfigurationWindow.h"
#endif
......@@ -90,7 +90,7 @@ CommConfigurationWindow::CommConfigurationWindow(LinkInterface* link, ProtocolIn
ui.linkType->addItem(tr("Simulation"), QGC_LINK_SIMULATION);
}
#ifdef OPAL_RT
#ifdef QGC_RTLAB_ENABLED
ui.linkType->addItem(tr("Opal-RT Link"), QGC_LINK_OPAL);
#endif
#ifdef QGC_XBEE_ENABLED
......@@ -164,7 +164,7 @@ CommConfigurationWindow::CommConfigurationWindow(LinkInterface* link, ProtocolIn
ui.linkType->setEnabled(false); //Don't allow the user to change to a non-simulation
ui.linkGroupBox->setTitle(tr("MAVLink Simulation Link"));
}
#ifdef OPAL_RT
#ifdef QGC_RTLAB_ENABLED
OpalLink* opal = dynamic_cast<OpalLink*>(link);
if (opal != 0) {
QWidget* conf = new OpalLinkConfigurationWindow(opal, this);
......@@ -188,7 +188,7 @@ CommConfigurationWindow::CommConfigurationWindow(LinkInterface* link, ProtocolIn
}
#endif // QGC_XBEE_ENABLED
if (serial == 0 && udp == 0 && sim == 0 && tcp == 0
#ifdef OPAL_RT
#ifdef QGC_RTLAB_ENABLED
&& opal == 0
#endif
#ifdef QGC_XBEE_ENABLED
......@@ -274,7 +274,7 @@ void CommConfigurationWindow::setLinkType(qgc_link_t linktype)
break;
}
#ifdef OPAL_RT
#ifdef QGC_RTLAB_ENABLED
case QGC_LINK_OPAL:
{
OpalLink* opal = new OpalLink();
......@@ -282,7 +282,7 @@ void CommConfigurationWindow::setLinkType(qgc_link_t linktype)
MainWindow::instance()->addLink(tmpLink);
break;
}
#endif // OPAL_RT
#endif // QGC_RTLAB_ENABLED
default:
{
}
......
......@@ -48,7 +48,7 @@ enum qgc_link_t {
#ifdef QGC_XBEE_ENABLED
QGC_LINK_XBEE,
#endif
#ifdef OPAL_RT
#ifdef QGC_RTLAB_ENABLED
QGC_LINK_OPAL
#endif
};
......@@ -58,7 +58,7 @@ enum qgc_protocol_t {
};
#ifdef OPAL_RT
#ifdef QGC_RTLAB_ENABLED
#include "OpalLink.h"
#endif
......
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