Ref T275, added "latestOnGroundProviderElevation" to improve average elevation

This commit is contained in:
Klaus Basan
2018-06-18 19:03:45 +02:00
parent 2c55015d26
commit 7cc350974c
6 changed files with 62 additions and 10 deletions

View File

@@ -954,7 +954,7 @@ namespace BlackCore
// so far we have requested it, but we set it upfront either by
// a) average value from other plane in the vicinity or
// b) by extrapolating
const CElevationPlane averagePlane = this->averageElevationOfNonMovingAircraft(situation, CElevationPlane::minorAirportRadius());
const CElevationPlane averagePlane = this->averageElevationOfNonMovingAircraft(situation, CElevationPlane::majorAirportRadius(), 2);
if (!averagePlane.isNull())
{
correctedSituation.setGroundElevation(averagePlane, CAircraftSituation::Average);