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