Ref T773, use the callback for testing in emulated driver (same code as XPlane et.al.)

This commit is contained in:
Klaus Basan
2020-02-13 19:57:55 +01:00
committed by Mat Sutcliffe
parent 0ccc7a9cba
commit 9f911b7e55

View File

@@ -233,14 +233,8 @@ namespace BlackSimPlugin
{
if (!myself) { return; }
// update in simulator
ISimulationEnvironmentProvider::rememberGroundElevation(callsign, elv); // in simulator
// and in remote aircraft for given callsign
const int updated = CRemoteAircraftAware::updateAircraftGroundElevation(callsign, elv, CAircraftSituation::FromProvider);
Q_UNUSED(updated)
emit myself->receivedRequestedElevation(elv, callsign);
// updates in providers and emits signal
ISimulator::callbackReceivedRequestedElevation(elv, callsign);
});
emit this->requestedElevation(callsign);