From 7677e81425400a64b2e44da7830ca098b8e215d8 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sat, 6 Jun 2015 10:49:30 -0700 Subject: [PATCH] Bump param wait time --- src/AutoPilotPlugins/PX4/AirframeComponentController.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/AutoPilotPlugins/PX4/AirframeComponentController.cc b/src/AutoPilotPlugins/PX4/AirframeComponentController.cc index 62674d32c..09cf48082 100644 --- a/src/AutoPilotPlugins/PX4/AirframeComponentController.cc +++ b/src/AutoPilotPlugins/PX4/AirframeComponentController.cc @@ -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 -- 2.22.0