mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
Ref T773, use closest positions for average height/elevation values
Testing with XPlane: * even in EDDF the field elevations vary from 353-368ft, which means a difference of 15ft or 4m * that means it is important to use the closest values
This commit is contained in:
committed by
Mat Sutcliffe
parent
57153d45d7
commit
ec92b6dc46
@@ -1423,10 +1423,11 @@ namespace BlackCore
|
||||
bool fromNonMoving = false;
|
||||
bool triedExtrapolation = false;
|
||||
bool couldNotExtrapolate = false;
|
||||
|
||||
CElevationPlane averagePlane = this->averageElevationOfOnGroundAircraft(situation, CElevationPlane::majorAirportRadius(), 2, 3);
|
||||
if (averagePlane.isNull())
|
||||
{
|
||||
averagePlane = this->averageElevationOfNonMovingAircraft(situation, CElevationPlane::majorAirportRadius(), 2);
|
||||
averagePlane = this->averageElevationOfNonMovingAircraft(situation, CElevationPlane::majorAirportRadius(), 2, 3);
|
||||
fromNonMoving = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user