mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +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; }
|
if (!myself) { return; }
|
||||||
|
|
||||||
// update in simulator
|
// updates in providers and emits signal
|
||||||
ISimulationEnvironmentProvider::rememberGroundElevation(callsign, elv); // in simulator
|
ISimulator::callbackReceivedRequestedElevation(elv, callsign);
|
||||||
|
|
||||||
// and in remote aircraft for given callsign
|
|
||||||
const int updated = CRemoteAircraftAware::updateAircraftGroundElevation(callsign, elv, CAircraftSituation::FromProvider);
|
|
||||||
Q_UNUSED(updated)
|
|
||||||
|
|
||||||
emit myself->receivedRequestedElevation(elv, callsign);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
emit this->requestedElevation(callsign);
|
emit this->requestedElevation(callsign);
|
||||||
|
|||||||
Reference in New Issue
Block a user