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
a3920b00
Commit
a3920b00
authored
Mar 02, 2017
by
Don Gagne
Committed by
GitHub
Mar 02, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4687 from DonLakeFlyer/ArduPilotWierdness
Handle ArduPilot param behavior
parents
5949ff7a
d2861027
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
ParameterManager.cc
src/FactSystem/ParameterManager.cc
+8
-1
No files found.
src/FactSystem/ParameterManager.cc
View file @
a3920b00
...
...
@@ -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
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