mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 23:45:35 +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;
|
||||
}
|
||||
|
||||
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()
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user