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
fa69b34c
Commit
fa69b34c
authored
Dec 06, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1077 from DonLakeFlyer/ParamHang
Param boot hang
parents
2c0d56c7
bd3bb475
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
6 deletions
+19
-6
QGCMAVLinkUASFactory.cc
src/uas/QGCMAVLinkUASFactory.cc
+4
-1
QGCBaseParamWidget.cc
src/ui/QGCBaseParamWidget.cc
+3
-2
QGCParamWidget.cc
src/ui/QGCParamWidget.cc
+9
-2
QGCParamWidget.h
src/ui/QGCParamWidget.h
+3
-1
No files found.
src/uas/QGCMAVLinkUASFactory.cc
View file @
fa69b34c
...
...
@@ -78,8 +78,11 @@ UASInterface* QGCMAVLinkUASFactory::createUAS(MAVLinkProtocol* mavlink, LinkInte
// Make UAS aware that this link can be used to communicate with the actual robot
uas
->
addLink
(
link
);
// First thing we do with a new UAS is get the parameters
uas
->
requestParameters
();
// Now add UAS to "official" list, which makes the whole application aware of it
UASManager
::
instance
()
->
addUAS
(
uas
);
return
uas
;
}
src/ui/QGCBaseParamWidget.cc
View file @
fa69b34c
...
...
@@ -40,8 +40,6 @@ void QGCBaseParamWidget::setUAS(UASInterface* uas)
connectToParamManager
();
connectViewSignalsAndSlots
();
layoutWidget
();
paramMgr
->
requestParameterListIfEmpty
();
}
}
...
...
@@ -62,6 +60,9 @@ void QGCBaseParamWidget::connectToParamManager()
// Listen for param list reload finished
connect
(
paramMgr
,
SIGNAL
(
parameterListUpToDate
()),
this
,
SLOT
(
handleOnboardParameterListUpToDate
()));
if
(
paramMgr
->
parametersReady
())
{
handleOnboardParameterListUpToDate
();
}
// Listen to communications status messages so we can display them
connect
(
paramMgr
,
SIGNAL
(
parameterStatusMsgUpdated
(
QString
,
int
)),
...
...
src/ui/QGCParamWidget.cc
View file @
fa69b34c
...
...
@@ -51,7 +51,8 @@ QGCParamWidget::QGCParamWidget(QWidget *parent) :
QGCBaseParamWidget
(
parent
),
componentItems
(
new
QMap
<
int
,
QTreeWidgetItem
*>
()),
statusLabel
(
new
QLabel
(
this
)),
tree
(
new
QTreeWidget
(
this
))
tree
(
new
QTreeWidget
(
this
)),
_fullParamListLoaded
(
false
)
{
...
...
@@ -236,9 +237,15 @@ void QGCParamWidget::handleOnboardParamUpdate(int compId, const QString& paramNa
void
QGCParamWidget
::
handleOnboardParameterListUpToDate
()
{
// Don't load full param list more than once
if
(
_fullParamListLoaded
)
{
return
;
}
_fullParamListLoaded
=
true
;
//turn off updates while we refresh the entire list
tree
->
setUpdatesEnabled
(
false
);
qDebug
()
<<
"WARN: LIST UPDATE"
;
//rewrite the component item tree after receiving the full list
QMap
<
int
,
QMap
<
QString
,
QVariant
>*>::
iterator
i
;
...
...
src/ui/QGCParamWidget.h
View file @
fa69b34c
...
...
@@ -104,7 +104,9 @@ protected:
QLabel
*
statusLabel
;
///< User-facing parameter status label
QTreeWidget
*
tree
;
///< The parameter tree
QStringList
_filterList
;
private:
bool
_fullParamListLoaded
;
};
#endif // QGCPARAMWIDGET_H
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