Fix desync wrt off-map flights

This commit is contained in:
Raffson 2024-01-28 19:20:22 +01:00
parent ca98183e94
commit 0edcd31367
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
2 changed files with 11 additions and 2 deletions

View File

@ -277,8 +277,9 @@ class FlightPlan(ABC, Generic[LayoutT]):
else: else:
return timedelta(minutes=8) return timedelta(minutes=8)
@staticmethod def estimate_takeoff_time(self) -> timedelta:
def estimate_takeoff_time() -> timedelta: if self.flight.departure.is_offmap:
return timedelta()
return timedelta(seconds=30) return timedelta(seconds=30)
@property @property

View File

@ -646,6 +646,10 @@ class ControlPoint(MissionTarget, SidcDescribable, ABC):
""" """
return False return False
@property
def is_offmap(self) -> bool:
return False
@property @property
def moveable(self) -> bool: def moveable(self) -> bool:
""" """
@ -1578,6 +1582,10 @@ class OffMapSpawn(ControlPoint):
def status(self) -> ControlPointStatus: def status(self) -> ControlPointStatus:
return ControlPointStatus.Functional return ControlPointStatus.Functional
@property
def is_offmap(self) -> bool:
return True
class Fob(ControlPoint, RadioFrequencyContainer, CTLD): class Fob(ControlPoint, RadioFrequencyContainer, CTLD):
def __init__( def __init__(