Ref T260, utility functions for interpolation/guessing

This commit is contained in:
Klaus Basan
2018-04-18 05:01:21 +02:00
committed by Roland Winklmeier
parent d021e2dcce
commit 075ffa8ccb
5 changed files with 74 additions and 10 deletions

View File

@@ -184,6 +184,9 @@ namespace BlackMisc
//! Set on ground factor 0..1 (on ground), -1 not set
void setOnGroundFactor(double groundFactor);
//! Should we guess on ground?
bool shouldGuessOnGround() const;
//! Guess on ground flag
bool guessOnGround(bool vtol = false, const PhysicalQuantities::CLength &cg = PhysicalQuantities::CLength::null());
@@ -193,6 +196,9 @@ namespace BlackMisc
//! On ground reliability
OnGroundDetails getOnGroundDetails() const { return static_cast<CAircraftSituation::OnGroundDetails>(m_onGroundDetails); }
//! Do the ground details permit ground interpolation?
bool hasGroundDetailsForGndInterpolation() const;
//! On ground reliability as string
const QString &getOnDetailsAsString() const;