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
40a31c55
Commit
40a31c55
authored
May 14, 2010
by
lm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes
parent
9ab80260
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
QGCParamWidget.cc
src/ui/QGCParamWidget.cc
+11
-0
QGCParamWidget.h
src/ui/QGCParamWidget.h
+3
-0
No files found.
src/ui/QGCParamWidget.cc
View file @
40a31c55
...
...
@@ -82,6 +82,8 @@ QGCParamWidget::QGCParamWidget(UASInterface* uas, QWidget *parent) :
// Connect signals/slots
connect
(
this
,
SIGNAL
(
parameterChanged
(
int
,
QString
,
float
)),
mav
,
SLOT
(
setParameter
(
int
,
QString
,
float
)));
connect
(
tree
,
SIGNAL
(
currentItemChanged
(
QTreeWidgetItem
*
,
QTreeWidgetItem
*
)),
this
,
SLOT
(
parameterItemChanged
(
QTreeWidgetItem
*
,
QTreeWidgetItem
*
)));
// New parameters from UAS
connect
(
uas
,
SIGNAL
(
parameterChanged
(
int
,
int
,
QString
,
float
)),
this
,
SLOT
(
addParameter
(
int
,
int
,
QString
,
float
)));
}
...
...
@@ -156,6 +158,15 @@ void QGCParamWidget::requestParameterList()
mav
->
requestParameters
();
}
void
QGCParamWidget
::
parameterItemChanged
(
QTreeWidgetItem
*
prev
,
QTreeWidgetItem
*
curr
)
{
int
key
;
if
(
!
changedValues
->
contains
(
key
))
{
}
}
/**
* @param component the subsystem which has the parameter
* @param parameterName name of the parameter, as delivered by the system
...
...
src/ui/QGCParamWidget.h
View file @
40a31c55
...
...
@@ -67,10 +67,13 @@ public slots:
void
writeParameters
();
/** @brief Clear the parameter list */
void
clear
();
/** @brief Update when user changes parameters */
void
parameterItemChanged
(
QTreeWidgetItem
*
prev
,
QTreeWidgetItem
*
curr
);
protected:
UASInterface
*
mav
;
///< The MAV this widget is controlling
QTreeWidget
*
tree
;
///< The parameter tree
QMap
<
int
,
QTreeWidgetItem
*>*
components
;
///< The list of components
QMap
<
int
,
QMap
<
QString
,
float
>
>*
changedValues
;
///< Changed values
};
...
...
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