mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T231, utility functions
* altitude * situation * callsign set * elevation set
This commit is contained in:
@@ -42,7 +42,7 @@ namespace BlackMisc
|
||||
{
|
||||
if (isNull()) { return false; }
|
||||
const CLength d = this->calculateGreatCircleDistance(coordinate);
|
||||
const bool inRange = m_radius >= d;
|
||||
const bool inRange = (m_radius >= d);
|
||||
return inRange;
|
||||
}
|
||||
|
||||
@@ -88,9 +88,12 @@ namespace BlackMisc
|
||||
}
|
||||
}
|
||||
|
||||
// 100km/h 27,8m/s
|
||||
// 50km/h 13,9m/s
|
||||
// 100kts 51,4m/s
|
||||
const CLength &CElevationPlane::singlePointRadius()
|
||||
{
|
||||
static const CLength l(10.0, CLengthUnit::m());
|
||||
static const CLength l(25.0, CLengthUnit::m());
|
||||
return l;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user