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
7677e814
Commit
7677e814
authored
Jun 06, 2015
by
Don Gagne
Browse files
Bump param wait time
parent
d70464d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AutoPilotPlugins/PX4/AirframeComponentController.cc
View file @
7677e814
...
...
@@ -102,9 +102,10 @@ void AirframeComponentController::changeAutostart(void)
getParameterFact
(
-
1
,
"SYS_AUTOSTART"
)
->
setValue
(
_autostartId
);
getParameterFact
(
-
1
,
"SYS_AUTOCONFIG"
)
->
setValue
(
1
);
// Wait for the parameters to flow through system
// FactSystem doesn't currently have a mechanism to wait for the parameters to come backf from the board.
// So instead we wait for enough time for the parameters to hoepfully make it to the board.
qgcApp
()
->
processEvents
(
QEventLoop
::
ExcludeUserInputEvents
);
QGC
::
SLEEP
::
sleep
(
1
);
QGC
::
SLEEP
::
sleep
(
3
);
qgcApp
()
->
processEvents
(
QEventLoop
::
ExcludeUserInputEvents
);
// Reboot board
...
...
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