Ref T683, "updateOwnSituationAndGroundElevation"

* function to use own positions "on ground" to calculate ground elevation
* use this based on settings
* adjusted simulators code
This commit is contained in:
Klaus Basan
2019-06-13 01:14:48 +02:00
committed by Mat Sutcliffe
parent fc2f7b4a12
commit 0360704b0b
8 changed files with 46 additions and 5 deletions

View File

@@ -195,7 +195,7 @@ namespace BlackSimPlugin
// Updates
// Do not update ICAO codes, as this overrides reverse lookups
// updateOwnIcaoCodes(m_flightgearData.aircraftIcaoCode, CAirlineIcaoCode());
this->updateOwnSituation(situation);
this->updateOwnSituationAndGroundElevation(situation);
// defaults
CSimulatedAircraft myAircraft(getOwnAircraft());