mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
Ref T261, encapsulated groundInterpolationFactor
Rational: Less compilation time when need to change
This commit is contained in:
committed by
Roland Winklmeier
parent
756b1a1ada
commit
29407d113e
@@ -63,6 +63,14 @@ namespace BlackMisc
|
|||||||
return cg;
|
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>
|
template<typename Derived>
|
||||||
void CInterpolator<Derived>::deferredInit()
|
void CInterpolator<Derived>::deferredInit()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -105,6 +105,10 @@ namespace BlackMisc
|
|||||||
//! Center of gravity, fetched from provider in case needed
|
//! Center of gravity, fetched from provider in case needed
|
||||||
PhysicalQuantities::CLength getAndFetchModelCG();
|
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
|
const Aviation::CCallsign m_callsign; //!< corresponding callsign
|
||||||
CAircraftModel m_model; //!< corresponding model
|
CAircraftModel m_model; //!< corresponding model
|
||||||
Aviation::CAircraftSituation m_lastInterpolation { Aviation::CAircraftSituation::null() }; //!< latest interpolation
|
Aviation::CAircraftSituation m_lastInterpolation { Aviation::CAircraftSituation::null() }; //!< latest interpolation
|
||||||
|
|||||||
Reference in New Issue
Block a user