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
d8fd4852
Commit
d8fd4852
authored
Aug 24, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further cleanup
parent
f8e59e07
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
28 deletions
+15
-28
MainWindow.cc
src/ui/MainWindow.cc
+6
-17
MainWindow.h
src/ui/MainWindow.h
+0
-2
QGCPX4AirframeConfig.cc
src/ui/px4_configuration/QGCPX4AirframeConfig.cc
+9
-9
No files found.
src/ui/MainWindow.cc
View file @
d8fd4852
...
...
@@ -57,7 +57,6 @@ This file is part of the QGROUNDCONTROL project
#include "MAVLinkDecoder.h"
#include "QGCMAVLinkMessageSender.h"
#include "QGCRGBDView.h"
#include "QGCFirmwareUpdate.h"
#include "QGCStatusBar.h"
#include "UASQuickView.h"
#include "QGCDataPlot2D.h"
...
...
@@ -1414,8 +1413,9 @@ void MainWindow::connectCommonActions()
perspectives
->
addAction
(
ui
.
actionMissionView
);
//perspectives->addAction(ui.actionConfiguration_2);
perspectives
->
addAction
(
ui
.
actionHardwareConfig
);
perspectives
->
addAction
(
ui
.
actionSoftwareConfig
);
perspectives
->
addAction
(
ui
.
actionFirmwareUpdateView
);
if
(
getCustomMode
()
==
CUSTOM_MODE_APM
)
{
perspectives
->
addAction
(
ui
.
actionSoftwareConfig
);
}
perspectives
->
addAction
(
ui
.
actionTerminalView
);
perspectives
->
addAction
(
ui
.
actionUnconnectedView
);
perspectives
->
setExclusive
(
true
);
...
...
@@ -2027,9 +2027,9 @@ void MainWindow::loadViewState()
case
VIEW_MAVLINK
:
centerStack
->
setCurrentWidget
(
mavlinkView
);
break
;
case
VIEW_FIRMWAREUPDATE
:
centerStack
->
setCurrentWidget
(
firmwareUpdateWidget
);
break
;
//
case VIEW_FIRMWAREUPDATE:
//
centerStack->setCurrentWidget(firmwareUpdateWidget);
//
break;
case
VIEW_MISSION
:
centerStack
->
setCurrentWidget
(
plannerView
);
break
;
...
...
@@ -2190,17 +2190,6 @@ void MainWindow::loadMAVLinkView()
}
}
void
MainWindow
::
loadFirmwareUpdateView
()
{
if
(
currentView
!=
VIEW_FIRMWAREUPDATE
)
{
storeViewState
();
currentView
=
VIEW_FIRMWAREUPDATE
;
ui
.
actionFirmwareUpdateView
->
setChecked
(
true
);
loadViewState
();
}
}
//void MainWindow::loadDataView(QString fileName)
//{
// // Plot is now selected, now load data from file
...
...
src/ui/MainWindow.h
View file @
d8fd4852
...
...
@@ -240,8 +240,6 @@ public slots:
void
loadOperatorView
();
/** @brief Load MAVLink XML generator view */
void
loadMAVLinkView
();
/** @brief Load firmware update view */
void
loadFirmwareUpdateView
();
/** @brief Load Terminal Console views */
void
loadTerminalView
();
...
...
src/ui/px4_configuration/QGCPX4AirframeConfig.cc
View file @
d8fd4852
...
...
@@ -23,33 +23,33 @@ QGCPX4AirframeConfig::QGCPX4AirframeConfig(QWidget *parent) :
ui
->
planeComboBox
->
addItem
(
tr
(
"Hobbyking Bixler 1/2"
),
101
);
connect
(
ui
->
planePushButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
planeSelected
()));
connect
(
ui
->
planeComboBox
,
SIGNAL
(
currentIndexChang
ed
(
int
)),
this
,
SLOT
(
planeSelected
(
int
)));
connect
(
ui
->
planeComboBox
,
SIGNAL
(
activat
ed
(
int
)),
this
,
SLOT
(
planeSelected
(
int
)));
ui
->
flyingWingComboBox
->
addItem
(
tr
(
"Bormatec Camflyer Q"
),
30
);
ui
->
flyingWingComboBox
->
addItem
(
tr
(
"Phantom FPV"
),
31
);
connect
(
ui
->
flyingWingPushButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
flyingWingSelected
()));
connect
(
ui
->
flyingWingComboBox
,
SIGNAL
(
currentIndexChang
ed
(
int
)),
this
,
SLOT
(
flyingWingSelected
(
int
)));
connect
(
ui
->
flyingWingComboBox
,
SIGNAL
(
activat
ed
(
int
)),
this
,
SLOT
(
flyingWingSelected
(
int
)));
ui
->
quadXComboBox
->
addItem
(
tr
(
"Standard 10
\"
Quad"
),
1
);
ui
->
quadXComboBox
->
addItem
(
tr
(
"DJI F330 8
\"
Quad"
),
10
);
ui
->
quadXComboBox
->
addItem
(
tr
(
"Turnigy Talon v2 X550 Quad"
),
666
);
connect
(
ui
->
quadXPushButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
quadXSelected
()));
connect
(
ui
->
quadXComboBox
,
SIGNAL
(
currentIndexChang
ed
(
int
)),
this
,
SLOT
(
quadXSelected
(
int
)));
connect
(
ui
->
quadXComboBox
,
SIGNAL
(
activat
ed
(
int
)),
this
,
SLOT
(
quadXSelected
(
int
)));
connect
(
ui
->
quadPlusPushButton
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
quadPlusSelected
()));
connect
(
ui
->
quadPlusComboBox
,
SIGNAL
(
currentIndexChang
ed
(
int
)),
this
,
SLOT
(
quadPlusSelected
(
int
)));
connect
(
ui
->
quadPlusComboBox
,
SIGNAL
(
activat
ed
(
int
)),
this
,
SLOT
(
quadPlusSelected
(
int
)));
connect
(
ui
->
hexaXComboBox
,
SIGNAL
(
currentIndexChang
ed
(
int
)),
this
,
SLOT
(
hexaXSelected
(
int
)));
connect
(
ui
->
hexaXComboBox
,
SIGNAL
(
activat
ed
(
int
)),
this
,
SLOT
(
hexaXSelected
(
int
)));
connect
(
ui
->
hexaPlusComboBox
,
SIGNAL
(
currentIndexChang
ed
(
int
)),
this
,
SLOT
(
hexaPlusSelected
(
int
)));
connect
(
ui
->
hexaPlusComboBox
,
SIGNAL
(
activat
ed
(
int
)),
this
,
SLOT
(
hexaPlusSelected
(
int
)));
connect
(
ui
->
octoXComboBox
,
SIGNAL
(
currentIndexChang
ed
(
int
)),
this
,
SLOT
(
octoXSelected
(
int
)));
connect
(
ui
->
octoXComboBox
,
SIGNAL
(
activat
ed
(
int
)),
this
,
SLOT
(
octoXSelected
(
int
)));
connect
(
ui
->
octoPlusComboBox
,
SIGNAL
(
currentIndexChang
ed
(
int
)),
this
,
SLOT
(
octoPlusSelected
(
int
)));
connect
(
ui
->
octoPlusComboBox
,
SIGNAL
(
activat
ed
(
int
)),
this
,
SLOT
(
octoPlusSelected
(
int
)));
connect
(
ui
->
hComboBox
,
SIGNAL
(
currentIndexChang
ed
(
int
)),
this
,
SLOT
(
hSelected
(
int
)));
connect
(
ui
->
hComboBox
,
SIGNAL
(
activat
ed
(
int
)),
this
,
SLOT
(
hSelected
(
int
)));
ui
->
hComboBox
->
addItem
(
tr
(
"TBS Discovery"
),
15
);
ui
->
hComboBox
->
addItem
(
tr
(
"H Custom"
),
16
);
...
...
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