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
d2861027
Commit
d2861027
authored
Mar 02, 2017
by
Don Gagne
Browse files
Handle ArduPilot param behavior
parent
b3dac085
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/FactSystem/ParameterManager.cc
View file @
d2861027
...
...
@@ -75,7 +75,7 @@ ParameterManager::ParameterManager(Vehicle* vehicle)
connect
(
&
_initialRequestTimeoutTimer
,
&
QTimer
::
timeout
,
this
,
&
ParameterManager
::
_initialRequestTimeout
);
_waitingParamTimeoutTimer
.
setSingleShot
(
true
);
_waitingParamTimeoutTimer
.
setInterval
(
3000
);
_waitingParamTimeoutTimer
.
setInterval
(
3000
0
);
connect
(
&
_waitingParamTimeoutTimer
,
&
QTimer
::
timeout
,
this
,
&
ParameterManager
::
_waitingParamTimeout
);
connect
(
_vehicle
->
uas
(),
&
UASInterface
::
parameterUpdate
,
this
,
&
ParameterManager
::
_parameterUpdate
);
...
...
@@ -107,6 +107,13 @@ void ParameterManager::_parameterUpdate(int vehicleId, int componentId, QString
"value:"
<<
value
<<
")"
;
// ArduPilot has this strange behavior of streaming parameters that we didn't ask for. This even happens before it responds to the
// PARAM_REQUEST_LIST. We disregard any of this until the initial request is responded to.
if
(
parameterId
==
65535
&&
_initialRequestTimeoutTimer
.
isActive
())
{
qCDebug
(
ParameterManagerVerbose1Log
)
<<
"Disregarding unrequested param prior to intial list response"
<<
parameterName
;
return
;
}
_initialRequestTimeoutTimer
.
stop
();
#if 0
...
...
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