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
0377af7c
Commit
0377af7c
authored
Oct 30, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Generic mav ui incorrectly hidden
parent
d812056a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
ParameterInterface.cc
src/ui/ParameterInterface.cc
+1
-13
No files found.
src/ui/ParameterInterface.cc
View file @
0377af7c
...
...
@@ -37,7 +37,6 @@ This file is part of the QGROUNDCONTROL project
#include <QDebug>
#include <QSettings>
#include "MainWindow.h"
ParameterInterface
::
ParameterInterface
(
QWidget
*
parent
)
:
QWidget
(
parent
),
...
...
@@ -48,13 +47,6 @@ ParameterInterface::ParameterInterface(QWidget *parent) :
m_ui
->
setupUi
(
this
);
QSettings
settings
;
enum
MainWindow
::
CUSTOM_MODE
mode
=
static_cast
<
enum
MainWindow
::
CUSTOM_MODE
>
(
settings
.
value
(
"QGC_CUSTOM_MODE"
,
MainWindow
::
CUSTOM_MODE_NONE
).
toInt
());
if
(
mode
==
MainWindow
::
CUSTOM_MODE_PX4
)
{
delete
m_ui
->
sensorSettings
;
m_ui
->
sensorSettings
=
NULL
;
}
// Get current MAV list
QList
<
UASInterface
*>
systems
=
UASManager
::
instance
()
->
getUASList
();
...
...
@@ -79,8 +71,7 @@ ParameterInterface::~ParameterInterface()
void
ParameterInterface
::
selectUAS
(
int
index
)
{
m_ui
->
stackedWidget
->
setCurrentIndex
(
index
);
if
(
m_ui
->
sensorSettings
)
m_ui
->
sensorSettings
->
setCurrentIndex
(
index
);
m_ui
->
sensorSettings
->
setCurrentIndex
(
index
);
curr
=
index
;
}
...
...
@@ -109,11 +100,8 @@ void ParameterInterface::addUAS(UASInterface* uas)
QGCSensorSettingsWidget
*
sensor
=
NULL
;
if
(
m_ui
->
sensorSettings
)
{
sensor
=
new
QGCSensorSettingsWidget
(
uas
,
this
);
m_ui
->
sensorSettings
->
addWidget
(
sensor
);
}
// Set widgets as default
if
(
curr
==
-
1
)
{
...
...
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