Overload takeoff_time for PatrollingFlightPlan

Fixes bug where TARCAP get screwed TOTs due to a SEAD Sweep flight in a CAS package
This commit is contained in:
Raffson
2024-10-05 22:40:07 +02:00
parent 96e8208e3c
commit 9bd6c6c404

View File

@@ -80,6 +80,9 @@ class PatrollingFlightPlan(StandardFlightPlan[LayoutT], UiZoneDisplay, ABC):
return self.patrol_end_time
return None
def takeoff_time(self) -> datetime:
return self.patrol_start_time - self._travel_time_to_waypoint(self.tot_waypoint)
@property
def package_speed_waypoints(self) -> set[FlightWaypoint]:
return {self.layout.patrol_start, self.layout.patrol_end}