mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T259, Ref T243 use elevation plane for altitude
general idea: by using the plane class, we can set a elevation and then find a better one * use elevation plane in situation * adjusted depending classes such as hints, lists * using setGroundElevationChecked so elevation can be gradually improved
This commit is contained in:
@@ -120,8 +120,8 @@ namespace BlackMisc
|
||||
// do not call for XP (lazy init)
|
||||
if (!hints.hasElevationProvider())
|
||||
{
|
||||
CInterpolator::setGroundElevationFromHint(hints, oldSituation, false);
|
||||
CInterpolator::setGroundElevationFromHint(hints, newSituation, false);
|
||||
oldSituation.setGroundElevationChecked(hints.getElevationPlane());
|
||||
newSituation.setGroundElevationChecked(hints.getElevationPlane());
|
||||
}
|
||||
|
||||
CAircraftSituation currentSituation(oldSituation); // also sets ground elevation if available
|
||||
|
||||
Reference in New Issue
Block a user