mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +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(
|
distance = meter_to_nm(self.last_waypoint.position.distance_to_point(
|
||||||
waypoint.position
|
waypoint.position
|
||||||
))
|
))
|
||||||
duration = waypoint.tot - last_time
|
duration = (waypoint.tot - last_time).total_seconds() / 3600
|
||||||
return f"{int(distance / duration.total_seconds())} kt"
|
return f"{int(distance / duration)} kt"
|
||||||
|
|
||||||
def build(self) -> List[List[str]]:
|
def build(self) -> List[List[str]]:
|
||||||
return self.rows
|
return self.rows
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user