mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 17:30:12 +08:00
Ref T236, transfer elevation to newer situations for future reference.
The elevation will be transferred within a given radius
This commit is contained in:
@@ -148,6 +148,18 @@ namespace BlackMisc
|
|||||||
m_logger->logInterpolation(log);
|
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;
|
return currentSituation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user