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
beea5599
Commit
beea5599
authored
Feb 05, 2014
by
Bryant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed XBEELINK macro to QGC_XBEE_ENABLED to be consistent.
parent
e1bc02f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
QGCExternalLibs.pri
QGCExternalLibs.pri
+3
-2
CommConfigurationWindow.cc
src/ui/CommConfigurationWindow.cc
+10
-10
CommConfigurationWindow.h
src/ui/CommConfigurationWindow.h
+2
-2
No files found.
QGCExternalLibs.pri
View file @
beea5599
...
...
@@ -319,11 +319,11 @@ LinuxBuild : contains(MAVLINK_DIALECT, pixhawk) {
#
contains(DEFINES, DISABLE_KINECT) {
message("Skipping support for the Kinect (manual override)")
DEFINES -= DISABLE_KINECT
} else:MacBuild | LinuxBuild {
exists(/opt/local/include/libfreenect) | exists(/usr/local/include/libfreenect) {
message("Including support for the Kinect")
#INCLUDEPATH += /usr/include/libusb-1.0
DEFINES += QGC_LIBFREENECT_ENABLED
LIBS += -lfreenect
HEADERS += src/input/Freenect.h
...
...
@@ -387,10 +387,11 @@ XBEE_DEPENDENT_SOURCES += \
src/comm/XbeeLink.cpp \
src/comm/HexSpinBox.cpp \
src/ui/XbeeConfigurationWindow.cpp
XBEE_DEFINES =
XBEELINK
XBEE_DEFINES =
QGC_XBEE_ENABLED
contains(DEFINES, DISABLE_XBEE) {
message("Skipping support for native XBee API (manual override)")
DEFINES -= DISABLE_XBEE
} else:LinuxBuild {
exists(/usr/include/xbee.h) {
message("Including support for XBee API")
...
...
src/ui/CommConfigurationWindow.cc
View file @
beea5599
...
...
@@ -42,10 +42,10 @@ This file is part of the QGROUNDCONTROL project
#include "UDPLink.h"
#include "TCPLink.h"
#include "MAVLinkSimulationLink.h"
#ifdef
XBEELINK
#ifdef
QGC_XBEE_ENABLED
#include "XbeeLink.h"
#include "XbeeConfigurationWindow.h"
#endif //
XBEELINK
#endif //
QGC_XBEE_ENABLED
#ifdef OPAL_RT
#include "OpalLink.h"
#include "OpalLinkConfigurationWindow.h"
...
...
@@ -93,9 +93,9 @@ CommConfigurationWindow::CommConfigurationWindow(LinkInterface* link, ProtocolIn
#ifdef OPAL_RT
ui
.
linkType
->
addItem
(
tr
(
"Opal-RT Link"
),
QGC_LINK_OPAL
);
#endif
#ifdef
XBEELINK
#ifdef
QGC_XBEE_ENABLED
ui
.
linkType
->
addItem
(
tr
(
"Xbee API"
),
QGC_LINK_XBEE
);
#endif //
XBEELINK
#endif //
QGC_XBEE_ENABLED
ui
.
linkType
->
setEditable
(
false
);
ui
.
connectionType
->
addItem
(
"MAVLink"
,
QGC_PROTOCOL_MAVLINK
);
...
...
@@ -175,7 +175,7 @@ CommConfigurationWindow::CommConfigurationWindow(LinkInterface* link, ProtocolIn
ui
.
linkGroupBox
->
setTitle
(
tr
(
"Opal-RT Link"
));
}
#endif
#ifdef
XBEELINK
#ifdef
QGC_XBEE_ENABLED
XbeeLink
*
xbee
=
dynamic_cast
<
XbeeLink
*>
(
link
);
// new Konrad
if
(
xbee
!=
0
)
{
...
...
@@ -186,14 +186,14 @@ CommConfigurationWindow::CommConfigurationWindow(LinkInterface* link, ProtocolIn
connect
(
xbee
,
SIGNAL
(
tryConnectBegin
(
bool
)),
ui
.
actionConnect
,
SLOT
(
setDisabled
(
bool
)));
connect
(
xbee
,
SIGNAL
(
tryConnectEnd
(
bool
)),
ui
.
actionConnect
,
SLOT
(
setEnabled
(
bool
)));
}
#endif //
XBEELINK
#endif //
QGC_XBEE_ENABLED
if
(
serial
==
0
&&
udp
==
0
&&
sim
==
0
&&
tcp
==
0
#ifdef OPAL_RT
&&
opal
==
0
#endif
#ifdef
XBEELINK
#ifdef
QGC_XBEE_ENABLED
&&
xbee
==
0
#endif //
XBEELINK
#endif //
QGC_XBEE_ENABLED
)
{
qDebug
()
<<
"Link is NOT a known link, can't open configuration window"
;
}
...
...
@@ -249,7 +249,7 @@ void CommConfigurationWindow::setLinkType(qgc_link_t linktype)
LinkInterface
*
tmpLink
(
NULL
);
switch
(
linktype
)
{
#ifdef
XBEELINK
#ifdef
QGC_XBEE_ENABLED
case
QGC_LINK_XBEE
:
{
XbeeLink
*
xbee
=
new
XbeeLink
();
...
...
@@ -257,7 +257,7 @@ void CommConfigurationWindow::setLinkType(qgc_link_t linktype)
MainWindow
::
instance
()
->
addLink
(
tmpLink
);
break
;
}
#endif //
XBEELINK
#endif //
QGC_XBEE_ENABLED
case
QGC_LINK_UDP
:
{
UDPLink
*
udp
=
new
UDPLink
();
...
...
src/ui/CommConfigurationWindow.h
View file @
beea5599
...
...
@@ -45,8 +45,8 @@ enum qgc_link_t {
QGC_LINK_TCP
,
QGC_LINK_SIMULATION
,
QGC_LINK_FORWARDING
,
#ifdef
XBEELINK
QGC_LINK_XBEE
,
#ifdef
QGC_XBEE_ENABLED
QGC_LINK_XBEE
,
#endif
#ifdef OPAL_RT
QGC_LINK_OPAL
...
...
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