From ff0de79147bd7af934694966031f02c0ba7da5c9 Mon Sep 17 00:00:00 2001 From: Kenz Dale Date: Wed, 29 Aug 2012 14:41:45 +0200 Subject: [PATCH] Improved default HiTL timer periods for more reactivity. --- ground/openpilotgcs/src/plugins/coreplugin/OpenPilotGCS.xml | 6 +++--- ground/openpilotgcs/src/plugins/hitl/simulator.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/coreplugin/OpenPilotGCS.xml b/ground/openpilotgcs/src/plugins/coreplugin/OpenPilotGCS.xml index 67283b57d..f475ea024 100644 --- a/ground/openpilotgcs/src/plugins/coreplugin/OpenPilotGCS.xml +++ b/ground/openpilotgcs/src/plugins/coreplugin/OpenPilotGCS.xml @@ -928,7 +928,7 @@ false false - 100 + 40 49000 127.0.0.1 ASimRC @@ -964,7 +964,7 @@ true false - 100 + 40 9010 127.0.0.1 FG @@ -1000,7 +1000,7 @@ true false - 100 + 40 49000 127.0.0.1 X-Plane diff --git a/ground/openpilotgcs/src/plugins/hitl/simulator.cpp b/ground/openpilotgcs/src/plugins/hitl/simulator.cpp index 84d4798be..459c7405e 100644 --- a/ground/openpilotgcs/src/plugins/hitl/simulator.cpp +++ b/ground/openpilotgcs/src/plugins/hitl/simulator.cpp @@ -264,7 +264,7 @@ void Simulator::setupObjects() } if (settings.attActualEnabled && !settings.attActHW) - setupOutputObject(attActual, 10); + setupOutputObject(attActual, 20); else setupWatchedObject(attActual, 100); @@ -323,7 +323,7 @@ void Simulator::setupOutputObject(UAVObject* obj, quint32 updatePeriod) UAVObject::SetFlightAccess(mdata, UAVObject::ACCESS_READONLY); UAVObject::SetFlightTelemetryUpdateMode(mdata,UAVObject::UPDATEMODE_MANUAL); - obj->setMetadata(mdata); + obj->setMetadata(mdata); } void Simulator::onAutopilotConnect()