refs #852 Added a fudge factor to ground elevation so planes are not partially submerged in the ground.

This commit is contained in:
Mathew Sutcliffe
2017-01-11 14:56:50 +00:00
parent 47369c02d0
commit 6cabdf5b77

View File

@@ -54,7 +54,8 @@ namespace XBus
situation.longitude().value(CAngleUnit::deg()),
situation.getAltitude().value(CLengthUnit::m()));
if (std::isnan(meters)) { return CLength(0, nullptr); }
return CLength(meters, CLengthUnit::m());
constexpr decltype(meters) fudgeFactor = 3.0; //! \fixme Value should be different for each plane, derived from the CSL model geometry
return CLength(meters + fudgeFactor, CLengthUnit::m());
});
return hints;
}