Fix TOT-offset issues

This commit is contained in:
Raffson
2024-01-28 17:35:12 +01:00
parent 8d56e2d3bb
commit dad5e7c146
12 changed files with 32 additions and 20 deletions

View File

@@ -26,6 +26,7 @@ class InFlight(FlightState, ABC):
settings: Settings,
waypoint_index: int,
has_aborted: bool = False,
elapsed_time: timedelta = timedelta(),
) -> None:
super().__init__(flight, settings)
waypoints = self.flight.flight_plan.waypoints
@@ -35,7 +36,7 @@ class InFlight(FlightState, ABC):
# TODO: Error checking for flight plans without landing waypoints.
self.next_waypoint = waypoints[self.waypoint_index + 1]
self.total_time_to_next_waypoint = self.travel_time_between_waypoints()
self.elapsed_time = timedelta()
self.elapsed_time = elapsed_time
self.current_waypoint_elapsed = False
@property