mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T773, use the callback for testing in emulated driver (same code as XPlane et.al.)
This commit is contained in:
committed by
Mat Sutcliffe
parent
0ccc7a9cba
commit
9f911b7e55
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user