From 6cabdf5b7798de36b80da18e4f0111630e17dd3c Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Wed, 11 Jan 2017 14:56:50 +0000 Subject: [PATCH] refs #852 Added a fudge factor to ground elevation so planes are not partially submerged in the ground. --- src/xbus/traffic.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xbus/traffic.cpp b/src/xbus/traffic.cpp index de7926075..2dd8ea87a 100644 --- a/src/xbus/traffic.cpp +++ b/src/xbus/traffic.cpp @@ -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; }