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
ade7e59f
Commit
ade7e59f
authored
Feb 05, 2014
by
Bryant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MAVGen now uses the QGC_FEATURE_ENABLED macro naming to be consistent.
parent
ee0768fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
QGCExternalLibs.pri
QGCExternalLibs.pri
+3
-0
MainWindow.cc
src/ui/MainWindow.cc
+9
-9
No files found.
QGCExternalLibs.pri
View file @
ade7e59f
...
...
@@ -141,6 +141,9 @@ INCLUDEPATH += $$MAVLINKPATH
#
contains(DEFINES, ENABLE_MAVGEN) {
warning("Including support for MAVLink generator GUI (caution: deprecated)")
# Rename the macro to be consistent with other QGC feature existance macros.
DEFINES -= ENABLE_MAVGEN
DEFINES += QGC_MAVGEN_ENABLED
DEPENDPATH += \
src/apps/mavlinkgen
...
...
src/ui/MainWindow.cc
View file @
ade7e59f
...
...
@@ -70,10 +70,10 @@ This file is part of the QGROUNDCONTROL project
#include <QGCConfigView.h>
#include "SerialSettingsDialog.h"
#include "terminalconsole.h"
#include "menuactionhelper.h"
#include "menuactionhelper.h"
// Add support for the MAVLink generator UI if it's been requested.
#ifdef
ENABLE_MAVGEN
#ifdef
QGC_MAVGEN_ENABLED
#include "XMLCommProtocolWidget.h"
#endif
...
...
@@ -550,13 +550,13 @@ void MainWindow::buildCommonWidgets()
engineeringView
->
setObjectName
(
"VIEW_ENGINEER"
);
engineeringView
->
setCentralWidget
(
new
QGCDataPlot2D
(
this
));
addToCentralStackedWidget
(
engineeringView
,
VIEW_ENGINEER
,
tr
(
"Logfile Plot"
));
}
}
// Add the MAVLink generator UI if it's been requested.
#ifdef
ENABLE_MAVGEN
if
(
!
mavlinkView
)
{
mavlinkView
=
new
SubMainWindow
(
this
);
#ifdef
QGC_MAVGEN_ENABLED
if
(
!
mavlinkView
)
{
mavlinkView
=
new
SubMainWindow
(
this
);
mavlinkView
->
setObjectName
(
"VIEW_MAVLINK"
);
mavlinkView
->
setCentralWidget
(
new
XMLCommProtocolWidget
(
this
));
addToCentralStackedWidget
(
mavlinkView
,
VIEW_MAVLINK
,
tr
(
"Mavlink Generator"
));
...
...
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