Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
e540ddb9
Commit
e540ddb9
authored
Feb 05, 2014
by
Bryant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RT-LAB support now indicated by QGC_RTLAB_ENABLED macro.
parent
1ea5313b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
13 deletions
+14
-13
QGCExternalLibs.pri
QGCExternalLibs.pri
+3
-2
QGCCore.cc
src/QGCCore.cc
+2
-2
QGCCore.h
src/QGCCore.h
+1
-1
CommConfigurationWindow.cc
src/ui/CommConfigurationWindow.cc
+6
-6
CommConfigurationWindow.h
src/ui/CommConfigurationWindow.h
+2
-2
No files found.
QGCExternalLibs.pri
View file @
e540ddb9
...
...
@@ -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
...
...
src/QGCCore.cc
View file @
e540ddb9
...
...
@@ -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
);
...
...
src/QGCCore.h
View file @
e540ddb9
...
...
@@ -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"
...
...
src/ui/CommConfigurationWindow.cc
View file @
e540ddb9
...
...
@@ -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:
{
}
...
...
src/ui/CommConfigurationWindow.h
View file @
e540ddb9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment