Ref T261, encapsulated groundInterpolationFactor

Rational: Less compilation time when need to change
This commit is contained in:
Klaus Basan
2018-04-30 00:35:52 +02:00
committed by Roland Winklmeier
parent 756b1a1ada
commit 29407d113e
2 changed files with 12 additions and 0 deletions

View File

@@ -63,6 +63,14 @@ namespace BlackMisc
return cg;
}
template<typename Derived>
double CInterpolator<Derived>::groundInterpolationFactor()
{
// done here so we can change value without "larfer" recompilations
static constexpr double f = 0.95;
return f;
}
template<typename Derived>
void CInterpolator<Derived>::deferredInit()
{

View File

@@ -105,6 +105,10 @@ namespace BlackMisc
//! Center of gravity, fetched from provider in case needed
PhysicalQuantities::CLength getAndFetchModelCG();
//! Decides threshold when situation is considered on ground
//! \sa BlackMisc::Aviation::CAircraftSituation::setOnGroundFromGroundFactorFromInterpolation
static double groundInterpolationFactor();
const Aviation::CCallsign m_callsign; //!< corresponding callsign
CAircraftModel m_model; //!< corresponding model
Aviation::CAircraftSituation m_lastInterpolation { Aviation::CAircraftSituation::null() }; //!< latest interpolation