Remove max distance for AEW&C auto planning.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1259
This commit is contained in:
Dan Albert
2021-06-19 11:27:52 -07:00
parent 5f8b838652
commit b130c9882a
3 changed files with 6 additions and 1 deletions

View File

@@ -58,6 +58,10 @@ class Distance:
def from_nautical_miles(cls, value: float) -> Distance:
return cls(value * NM_TO_METERS)
@classmethod
def inf(cls) -> Distance:
return cls.from_meters(math.inf)
def __add__(self, other: Distance) -> Distance:
return meters(self.meters + other.meters)