Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
40a31c55
Commit
40a31c55
authored
May 14, 2010
by
lm
Browse files
Minor fixes
parent
9ab80260
Changes
2
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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