mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
refs #852 Added a fudge factor to ground elevation so planes are not partially submerged in the ground.
This commit is contained in:
@@ -54,7 +54,8 @@ namespace XBus
|
|||||||
situation.longitude().value(CAngleUnit::deg()),
|
situation.longitude().value(CAngleUnit::deg()),
|
||||||
situation.getAltitude().value(CLengthUnit::m()));
|
situation.getAltitude().value(CLengthUnit::m()));
|
||||||
if (std::isnan(meters)) { return CLength(0, nullptr); }
|
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;
|
return hints;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user