mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix kneeboard ground speeds.
This commit is contained in:
parent
31ca121498
commit
9d747a9f9b
@ -190,8 +190,8 @@ class FlightPlanBuilder:
|
||||
distance = meter_to_nm(self.last_waypoint.position.distance_to_point(
|
||||
waypoint.position
|
||||
))
|
||||
duration = waypoint.tot - last_time
|
||||
return f"{int(distance / duration.total_seconds())} kt"
|
||||
duration = (waypoint.tot - last_time).total_seconds() / 3600
|
||||
return f"{int(distance / duration)} kt"
|
||||
|
||||
def build(self) -> List[List[str]]:
|
||||
return self.rows
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user