From b78c3ad0a871067754dc0d14e80a8d755f609268 Mon Sep 17 00:00:00 2001 From: corvus Date: Wed, 30 Mar 2011 20:31:22 +0000 Subject: [PATCH] GCS:Hitl/IL2: no explicit updates since periodic updates now work git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@3109 ebee16cc-31ac-478f-84a7-5cbb03baadba --- .../src/plugins/hitlnew/il2simulator.cpp | 30 ++++++++----------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/hitlnew/il2simulator.cpp b/ground/openpilotgcs/src/plugins/hitlnew/il2simulator.cpp index d8bf065cf..0d957afe4 100644 --- a/ground/openpilotgcs/src/plugins/hitlnew/il2simulator.cpp +++ b/ground/openpilotgcs/src/plugins/hitlnew/il2simulator.cpp @@ -338,25 +338,19 @@ void IL2Simulator::processUpdate(const QByteArray& inp) // issue manual update // update every time (50ms) attActual->setData(attActualData); - attActual->updated(); + //attActual->updated(); attRaw->setData(rawData); - attRaw->updated(); - // update every 5th time (250 ms) - if ( ! ((old.i-1) % 5) ) { - velActual->setData(velData); - velActual->updated(); - posActual->setData(posData); - posActual->updated(); - altActual->setData(altActualData); - altActual->updated(); - gpsPos->setData(gpsData); - gpsPos->updated(); - } - // update every 20th time (1000ms) - if ( ! ((old.i-1) % 20) ) { - posHome->setData(homeData); - posHome->updated(); - } + //attRaw->updated(); + velActual->setData(velData); + //velActual->updated(); + posActual->setData(posData); + //posActual->updated(); + altActual->setData(altActualData); + //altActual->updated(); + gpsPos->setData(gpsData); + //gpsPos->updated(); + posHome->setData(homeData); + //posHome->updated(); } /**