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
9bcd3ed3
Commit
9bcd3ed3
authored
Aug 06, 2013
by
tstellanova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging retransmission of read param list
parent
31855837
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
QGCUASParamManager.cc
src/uas/QGCUASParamManager.cc
+4
-2
QGCUASParamManager.h
src/uas/QGCUASParamManager.h
+4
-2
No files found.
src/uas/QGCUASParamManager.cc
View file @
9bcd3ed3
...
...
@@ -49,8 +49,7 @@ void QGCUASParamManager::requestParameterList()
transmissionListSizeKnown
.
clear
();
transmissionListMode
=
true
;
foreach
(
int
key
,
transmissionMissingPackets
.
keys
())
{
foreach
(
int
key
,
transmissionMissingPackets
.
keys
())
{
transmissionMissingPackets
.
value
(
key
)
->
clear
();
}
transmissionActive
=
true
;
...
...
@@ -70,6 +69,8 @@ void QGCUASParamManager::requestParameterList()
*/
void
QGCUASParamManager
::
setRetransmissionGuardEnabled
(
bool
enabled
)
{
qDebug
()
<<
"setRetransmissionGuardEnabled: "
<<
enabled
;
if
(
enabled
)
{
retransmissionTimer
.
start
(
retransmissionTimeout
);
}
else
{
...
...
@@ -79,6 +80,7 @@ void QGCUASParamManager::setRetransmissionGuardEnabled(bool enabled)
void
QGCUASParamManager
::
setParameterStatusMsg
(
const
QString
&
msg
)
{
qDebug
()
<<
"parameterStatusMsg: "
<<
msg
;
parameterStatusMsg
=
msg
;
}
...
...
src/uas/QGCUASParamManager.h
View file @
9bcd3ed3
...
...
@@ -26,8 +26,6 @@ public:
virtual
void
setParamDescriptions
(
const
QMap
<
QString
,
QString
>&
paramDescs
);
protected:
/** @brief Check for missing parameters */
virtual
void
retransmissionGuardTick
();
/** @brief Activate / deactivate parameter retransmission */
virtual
void
setRetransmissionGuardEnabled
(
bool
enabled
);
...
...
@@ -48,6 +46,8 @@ public slots:
virtual
void
setParameter
(
int
component
,
QString
parameterName
,
QVariant
value
)
=
0
;
/** @brief Request list of parameters from MAV */
virtual
void
requestParameterList
();
/** @brief Check for missing parameters */
virtual
void
retransmissionGuardTick
();
protected:
...
...
@@ -67,6 +67,8 @@ protected:
int
retransmissionTimeout
;
///< Retransmission request timeout, in milliseconds
int
rewriteTimeout
;
///< Write request timeout, in milliseconds
int
retransmissionBurstRequestSize
;
///< Number of packets requested for retransmission per burst
// Status
QString
parameterStatusMsg
;
};
...
...
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