mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 15:15:39 +08:00
Ref T299, set "pitch on ground" in interpolator
This commit is contained in:
@@ -219,6 +219,16 @@ namespace BlackMisc
|
|||||||
altCorrection = currentSituation.correctAltitude(true); // we have CG set
|
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
|
// status
|
||||||
Q_ASSERT_X(currentSituation.hasMSLGeodeticHeight(), Q_FUNC_INFO, "No MSL altitude");
|
Q_ASSERT_X(currentSituation.hasMSLGeodeticHeight(), Q_FUNC_INFO, "No MSL altitude");
|
||||||
m_currentInterpolationStatus.setInterpolatedAndCheckSituation(true, currentSituation);
|
m_currentInterpolationStatus.setInterpolatedAndCheckSituation(true, currentSituation);
|
||||||
|
|||||||
Reference in New Issue
Block a user