mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +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
|
||||
}
|
||||
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user