mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Ref T275, defined the pairs we are using
This commit is contained in:
@@ -88,6 +88,18 @@ namespace BlackMisc
|
||||
return !m_guessedSceneryDeviation.isNull();
|
||||
}
|
||||
|
||||
bool CAircraftSituationChange::hasElevationDevWithinAllowedRange() const
|
||||
{
|
||||
if (m_elvStdDev.isNull()) { return false; }
|
||||
return m_elvStdDev < allowedAltitudeDeviation();
|
||||
}
|
||||
|
||||
bool CAircraftSituationChange::hasAltitudeDevWithinAllowedRange() const
|
||||
{
|
||||
if (m_altStdDev.isNull()) { return false; }
|
||||
return m_altStdDev < allowedAltitudeDeviation();
|
||||
}
|
||||
|
||||
QString CAircraftSituationChange::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
@@ -270,6 +282,12 @@ namespace BlackMisc
|
||||
return noInfo;
|
||||
}
|
||||
|
||||
const CLength &CAircraftSituationChange::allowedAltitudeDeviation()
|
||||
{
|
||||
static const CLength allowedStdDev(3, CLengthUnit::ft());
|
||||
return allowedStdDev;
|
||||
}
|
||||
|
||||
void CAircraftSituationChange::setSceneryDeviation(const CLength &deviation, const CLength &cg, CAircraftSituationChange::GuessedSceneryDeviation hint)
|
||||
{
|
||||
m_guessedSceneryDeviation = deviation;
|
||||
|
||||
Reference in New Issue
Block a user