mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
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:
committed by
Mat Sutcliffe
parent
fc2f7b4a12
commit
0360704b0b
@@ -251,7 +251,7 @@ namespace BlackSimPlugin
|
||||
}
|
||||
}
|
||||
|
||||
return this->updateOwnSituation(situation);
|
||||
return this->updateOwnSituationAndGroundElevation(situation);
|
||||
}
|
||||
|
||||
bool CSimulatorEmulated::changeInternalParts(const CAircraftParts &parts)
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -381,7 +381,7 @@ namespace BlackSimPlugin
|
||||
}
|
||||
|
||||
const CAircraftSituation aircraftSituation = simDataOwnAircraft.getSituation();
|
||||
this->updateOwnSituation(aircraftSituation);
|
||||
this->updateOwnSituationAndGroundElevation(aircraftSituation);
|
||||
|
||||
if (m_isWeatherActivated)
|
||||
{
|
||||
|
||||
@@ -678,7 +678,7 @@ namespace BlackSimPlugin
|
||||
ts);
|
||||
|
||||
// set values
|
||||
this->updateOwnSituation(aircraftSituation);
|
||||
this->updateOwnSituationAndGroundElevation(aircraftSituation);
|
||||
this->updateOwnParts(parts);
|
||||
|
||||
// When I change cockpit values in the sim (from GUI to simulator, not originating from simulator)
|
||||
|
||||
@@ -230,7 +230,7 @@ namespace BlackSimPlugin
|
||||
// Updates
|
||||
// Do not update ICAO codes, as this overrides reverse lookups
|
||||
// updateOwnIcaoCodes(m_xplaneData.aircraftIcaoCode, CAirlineIcaoCode());
|
||||
this->updateOwn(situation);
|
||||
this->updateOwnSituationAndGroundElevation(situation);
|
||||
|
||||
// defaults
|
||||
CSimulatedAircraft myAircraft(getOwnAircraft());
|
||||
|
||||
Reference in New Issue
Block a user