Ref T299, set "pitch on ground" in interpolator

This commit is contained in:
Klaus Basan
2018-08-04 23:54:41 +02:00
parent 2a50454b03
commit b81ff8b9d6

View File

@@ -219,6 +219,16 @@ namespace BlackMisc
altCorrection = currentSituation.correctAltitude(true); // we have CG set
}
// correct pitch on ground
if (currentSituation.isOnGround())
{
const CAngle correctedPitchOnGround = m_currentSetup.getPitchOnGround();
if (!correctedPitchOnGround.isNull())
{
currentSituation.setPitch(correctedPitchOnGround);
}
}
// status
Q_ASSERT_X(currentSituation.hasMSLGeodeticHeight(), Q_FUNC_INFO, "No MSL altitude");
m_currentInterpolationStatus.setInterpolatedAndCheckSituation(true, currentSituation);