mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Ref T270, signal requestedElevation
This commit is contained in:
@@ -237,6 +237,9 @@ namespace BlackCore
|
||||
//! Request a console message (whatever the console maybe)
|
||||
void requestUiConsoleMessage(const QString &driverMessage, bool clear);
|
||||
|
||||
//! Requested elevation, call pending
|
||||
void requestedElevation(const BlackMisc::Aviation::CCallsign &callsign);
|
||||
|
||||
//! A requested elevation has been received
|
||||
void receivedRequestedElevation(const BlackMisc::Geo::CElevationPlane &plane, const BlackMisc::Aviation::CCallsign &callsign);
|
||||
|
||||
|
||||
@@ -276,6 +276,7 @@ namespace BlackSimPlugin
|
||||
if (hr == S_OK)
|
||||
{
|
||||
this->requestTerrainProbeData(callsign);
|
||||
emit this->requestedElevation(callsign);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -106,6 +106,7 @@ namespace BlackSimPlugin
|
||||
if (hr == S_OK)
|
||||
{
|
||||
ok = true;
|
||||
emit this->requestedElevation(callsign);
|
||||
m_pendingProbeRequests.insert(requestId, callsign);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -135,6 +135,7 @@ namespace BlackSimPlugin
|
||||
pos.longitude().value(CAngleUnit::deg()),
|
||||
pos.geodeticHeight().value(CLengthUnit::m()),
|
||||
callback);
|
||||
emit this->requestedElevation(callsign);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user