1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

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
This commit is contained in:
corvus 2011-03-30 20:31:22 +00:00 committed by corvus
parent ff3ed79bdf
commit b78c3ad0a8

View File

@ -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();
}
/**