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
6157344e
Commit
6157344e
authored
Aug 06, 2013
by
tstellanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more comms refactoring
parent
2eac0e2e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
QGCUASParamManager.cc
src/uas/QGCUASParamManager.cc
+4
-2
QGCUASParamManager.h
src/uas/QGCUASParamManager.h
+1
-1
QGCParamWidget.cc
src/ui/QGCParamWidget.cc
+1
-0
No files found.
src/uas/QGCUASParamManager.cc
View file @
6157344e
...
...
@@ -43,10 +43,12 @@ void QGCUASParamManager::requestParameterList()
}
paramDataModel
->
forgetAllOnboardParameters
();
received
.
clear
();
// Clear transmission state
transmissionListMode
=
true
;
receivedParamsList
.
clear
()
;
transmissionListSizeKnown
.
clear
();
transmissionListMode
=
true
;
foreach
(
int
key
,
transmissionMissingPackets
.
keys
())
{
transmissionMissingPackets
.
value
(
key
)
->
clear
();
...
...
src/uas/QGCUASParamManager.h
View file @
6157344e
...
...
@@ -62,7 +62,7 @@ protected:
UASParameterDataModel
*
paramDataModel
;
///< Shared data model of parameters
// Communications management
QVector
<
bool
>
received
;
///< Successfully received parameters
QVector
<
bool
>
received
ParamsList
;
///< Successfully received parameters
QMap
<
int
,
QList
<
int
>*
>
transmissionMissingPackets
;
///< Missing packets
QMap
<
int
,
QMap
<
QString
,
QVariant
>*
>
transmissionMissingWriteAckPackets
;
///< Missing write ACK packets
bool
transmissionListMode
;
///< Currently requesting list
...
...
src/ui/QGCParamWidget.cc
View file @
6157344e
...
...
@@ -764,6 +764,7 @@ void QGCParamWidget::setParameters()
{
QMap
<
QString
,
QVariant
>::
iterator
j
;
for
(
j
=
comp
->
begin
();
j
!=
comp
->
end
();
++
j
)
{
//TODO mavlink command for "set parameter list" ?
setParameter
(
compid
,
j
.
key
(),
j
.
value
());
parametersSent
++
;
}
...
...
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