mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-21 11:54:15 +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:
parent
77f4fbe919
commit
c6f14c7530
@ -287,7 +287,7 @@ void FGSimulator::processUpdate(const QByteArray& inp)
|
|||||||
// Get pressure (kpa)
|
// Get pressure (kpa)
|
||||||
float pressure = fields[20].toFloat() * INHG2KPA;
|
float pressure = fields[20].toFloat() * INHG2KPA;
|
||||||
// Get VelocityActual Down (cm/s)
|
// Get VelocityActual Down (cm/s)
|
||||||
float velocityActualDown = fields[21].toFloat() * FPS2CMPS;
|
float velocityActualDown = - fields[21].toFloat() * FPS2CMPS;
|
||||||
// Get VelocityActual East (cm/s)
|
// Get VelocityActual East (cm/s)
|
||||||
float velocityActualEast = fields[22].toFloat() * FPS2CMPS;
|
float velocityActualEast = fields[22].toFloat() * FPS2CMPS;
|
||||||
// Get VelocityActual Down (cm/s)
|
// Get VelocityActual Down (cm/s)
|
||||||
@ -396,7 +396,6 @@ void FGSimulator::processUpdate(const QByteArray& inp)
|
|||||||
rawData.gyros_filtered[1] = pitchRate;
|
rawData.gyros_filtered[1] = pitchRate;
|
||||||
rawData.gyros_filtered[2] = yawRate;
|
rawData.gyros_filtered[2] = yawRate;
|
||||||
attRaw->setData(rawData);
|
attRaw->setData(rawData);
|
||||||
attRaw->updated();
|
// attRaw->updated();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user