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
9a9913bb
Commit
9a9913bb
authored
Aug 06, 2013
by
tstellanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused methods
parent
ea5e80af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
22 deletions
+4
-22
QGCUASParamManager.cc
src/uas/QGCUASParamManager.cc
+3
-0
QGCUASParamManager.h
src/uas/QGCUASParamManager.h
+1
-22
No files found.
src/uas/QGCUASParamManager.cc
View file @
9a9913bb
...
@@ -24,4 +24,7 @@ void QGCUASParamManager::requestParameterListUpdate(int component)
...
@@ -24,4 +24,7 @@ void QGCUASParamManager::requestParameterListUpdate(int component)
Q_UNUSED
(
component
);
Q_UNUSED
(
component
);
}
}
bool
QGCUASParamManager
::
getParameterValue
(
int
component
,
const
QString
&
parameter
,
QVariant
&
value
)
const
{
return
paramDataModel
->
getOnboardParameterValue
(
component
,
parameter
,
value
);
}
src/uas/QGCUASParamManager.h
View file @
9a9913bb
...
@@ -15,27 +15,7 @@ class QGCUASParamManager : public QWidget
...
@@ -15,27 +15,7 @@ class QGCUASParamManager : public QWidget
public:
public:
QGCUASParamManager
(
UASInterface
*
uas
,
QWidget
*
parent
=
0
);
QGCUASParamManager
(
UASInterface
*
uas
,
QWidget
*
parent
=
0
);
QList
<
QString
>
getParameterNames
(
int
component
)
const
{
virtual
bool
getParameterValue
(
int
component
,
const
QString
&
parameter
,
QVariant
&
value
)
const
;
return
onboardParameters
.
value
(
component
)
->
keys
();
}
QList
<
QVariant
>
getParameterValues
(
int
component
)
const
{
return
onboardParameters
.
value
(
component
)
->
values
();
}
bool
getParameterValue
(
int
component
,
const
QString
&
parameter
,
QVariant
&
value
)
const
{
if
(
!
onboardParameters
.
contains
(
component
))
{
return
false
;
}
if
(
!
onboardParameters
.
value
(
component
)
->
contains
(
parameter
))
{
return
false
;
}
value
=
onboardParameters
.
value
(
component
)
->
value
(
parameter
);
return
true
;
}
virtual
bool
isParamMinKnown
(
const
QString
&
param
)
=
0
;
virtual
bool
isParamMinKnown
(
const
QString
&
param
)
=
0
;
virtual
bool
isParamMaxKnown
(
const
QString
&
param
)
=
0
;
virtual
bool
isParamMaxKnown
(
const
QString
&
param
)
=
0
;
...
@@ -66,7 +46,6 @@ protected:
...
@@ -66,7 +46,6 @@ protected:
// Parameter data model
// Parameter data model
UASInterface
*
mav
;
///< The MAV this widget is controlling
UASInterface
*
mav
;
///< The MAV this widget is controlling
QMap
<
int
,
QMap
<
QString
,
QVariant
>*
>
onboardParameters
;
///< All parameters
UASParameterDataModel
*
paramDataModel
;
///< Shared data model of parameters
UASParameterDataModel
*
paramDataModel
;
///< Shared data model of parameters
// Communications management
// Communications management
...
...
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