mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Ref T778, utility functions
This commit is contained in:
committed by
Mat Sutcliffe
parent
004173b052
commit
cfa96a3aeb
@@ -257,6 +257,12 @@ namespace BlackMisc
|
||||
return m_cgsPerCallsign.remove(cs);
|
||||
}
|
||||
|
||||
void ISimulationEnvironmentProvider::removePendingElevationRequest(const CCallsign &cs)
|
||||
{
|
||||
QWriteLocker l(&m_lockElvCoordinates);
|
||||
m_pendingElevationRequests.remove(cs);
|
||||
}
|
||||
|
||||
CLength ISimulationEnvironmentProvider::minRange(const CLength &range)
|
||||
{
|
||||
return (range.isNull() || range < CElevationPlane::singlePointRadius()) ?
|
||||
|
||||
@@ -274,6 +274,11 @@ namespace BlackMisc
|
||||
//! \threadsafe
|
||||
int removeSimulatorCG(const Aviation::CCallsign &cs);
|
||||
|
||||
//! Remove pending timestamp
|
||||
//! \threadsafe
|
||||
//! \remark useful if we ignore the probe response on sim. side
|
||||
void removePendingElevationRequest(const Aviation::CCallsign &cs);
|
||||
|
||||
//! Min.range considered as single point
|
||||
static PhysicalQuantities::CLength minRange(const PhysicalQuantities::CLength &range);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user