Ref T259, Ref T243 utility functions for aircraft situation/elevation plane

This commit is contained in:
Klaus Basan
2018-03-23 02:18:47 +01:00
parent bb34beed26
commit 1203c58a23
6 changed files with 42 additions and 3 deletions

View File

@@ -381,6 +381,12 @@ namespace BlackMisc
return gsKmh >= 1.0;
}
bool CAircraftSituation::canLikelySkipNearGroundInterpolation() const
{
if (this->getGroundSpeed().value(CSpeedUnit::kts()) > 250) { return true; }
return false;
}
CLength CAircraftSituation::getDistancePerTime(const CTime &time) const
{
if (this->getGroundSpeed().isNull()) { return CLength(0, CLengthUnit::nullUnit()); }