mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add a comment explaining a wtf in alt estimation.
This commit is contained in:
parent
0135e40f1a
commit
9e5f1d08d2
@ -40,6 +40,11 @@ class Navigating(InFlight):
|
||||
)
|
||||
|
||||
def estimate_altitude(self) -> tuple[Distance, str]:
|
||||
# This does not behave well when one of the waypoints is AGL and the other is
|
||||
# MSL. We can't really avoid that problem though. We don't know where the ground
|
||||
# is, so conversions between them are impossible, and we do need to use AGL
|
||||
# altitudes for takeoff and landing waypoints (even if we had the runway
|
||||
# elevation, we don't have elevation for FARPs).
|
||||
return (
|
||||
meters(
|
||||
lerp(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user