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
6a173001
Commit
6a173001
authored
Aug 08, 2013
by
tstellanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset timeout timer every time we receive a param
parent
cdb33d12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
8 deletions
+24
-8
UASParameterCommsMgr.cc
src/uas/UASParameterCommsMgr.cc
+24
-8
No files found.
src/uas/UASParameterCommsMgr.cc
View file @
6a173001
...
...
@@ -495,15 +495,31 @@ void UASParameterCommsMgr::receivedParameterUpdate(int uas, int compId, int para
emit
parameterListUpToDate
();
}
else
{
qDebug
()
<<
"missCount:"
<<
missCount
<<
"missWriteCount:"
<<
missWriteCount
;
//reset the timeout timer since we received one
setRetransmissionGuardEnabled
(
true
);
if
(
missCount
<
4
)
{
foreach
(
int
key
,
transmissionMissingPackets
.
keys
())
{
QList
<
int
>*
list
=
transmissionMissingPackets
.
value
(
key
);
qDebug
()
<<
"Component"
<<
key
<<
"missing params:"
<<
list
;
}
}
setRetransmissionGuardEnabled
(
true
);
//reset the timeout timer since we received one
//qDebug() << "missCount:" << missCount << "missWriteCount:" << missWriteCount;
//if (missCount < 4) {
// foreach (int key, transmissionMissingPackets.keys()) {
// QList<int>* list = transmissionMissingPackets.value(key);
// if (list && list->count()) {
// QString yazza = QString().sprintf("Component %d missing %d: ",key,list->count());
// for (int i = 0; i < list->count(); i++) {
// int val = list->at(i);
// yazza.append( QString().sprintf("%d,",val) );
// }
// qDebug() << yazza;
// }
// else {
// //very suspicious...no actual missing items??
// transmissionMissingPackets.remove(key);
// break;
// }
// }
//}
}
}
...
...
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