1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

HITL: Flightgear: velocitydown was the wrong sign, so vario went the wrong way. Fixed now.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2269 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
edouard 2010-12-22 09:19:25 +00:00 committed by edouard
parent 77f4fbe919
commit c6f14c7530

View File

@ -287,7 +287,7 @@ void FGSimulator::processUpdate(const QByteArray& inp)
// Get pressure (kpa)
float pressure = fields[20].toFloat() * INHG2KPA;
// Get VelocityActual Down (cm/s)
float velocityActualDown = fields[21].toFloat() * FPS2CMPS;
float velocityActualDown = - fields[21].toFloat() * FPS2CMPS;
// Get VelocityActual East (cm/s)
float velocityActualEast = fields[22].toFloat() * FPS2CMPS;
// Get VelocityActual Down (cm/s)
@ -396,7 +396,6 @@ void FGSimulator::processUpdate(const QByteArray& inp)
rawData.gyros_filtered[1] = pitchRate;
rawData.gyros_filtered[2] = yawRate;
attRaw->setData(rawData);
attRaw->updated();
// attRaw->updated();
}