mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add a comment explaining a wtf in alt estimation.
This commit is contained in:
parent
207d56c2e9
commit
daf11c01c9
@ -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