Ref T236, transfer elevation to newer situations for future reference.

The elevation will be transferred within a given radius
This commit is contained in:
Klaus Basan
2018-01-25 23:22:33 +01:00
parent 6d5509890b
commit 321cb8e563

View File

@@ -148,6 +148,18 @@ namespace BlackMisc
m_logger->logInterpolation(log);
}
// we transfer ground elevation for future usage
if (currentSituation.hasGroundElevation())
{
CElevationPlane ep(currentSituation);
ep.setSinglePointRadius();
// transfer to newer situations
const int transfered = m_aircraftSituations.setGroundElevationChecked(ep, currentSituation.getMSecsSinceEpoch());
Q_UNUSED(transfered); // for debugging
}
// bye
return currentSituation;
}