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 // issue manual update
// update every time (50ms) // update every time (50ms)
attActual->setData(attActualData); attActual->setData(attActualData);
attActual->updated(); //attActual->updated();
attRaw->setData(rawData); attRaw->setData(rawData);
attRaw->updated(); //attRaw->updated();
// update every 5th time (250 ms) velActual->setData(velData);
if ( ! ((old.i-1) % 5) ) { //velActual->updated();
velActual->setData(velData); posActual->setData(posData);
velActual->updated(); //posActual->updated();
posActual->setData(posData); altActual->setData(altActualData);
posActual->updated(); //altActual->updated();
altActual->setData(altActualData); gpsPos->setData(gpsData);
altActual->updated(); //gpsPos->updated();
gpsPos->setData(gpsData); posHome->setData(homeData);
gpsPos->updated(); //posHome->updated();
}
// update every 20th time (1000ms)
if ( ! ((old.i-1) % 20) ) {
posHome->setData(homeData);
posHome->updated();
}
} }
/** /**