fix some bugs in the runway manager during the ETA calculation

This commit is contained in:
Sven Czarnian committed 2021-10-16 08:06:04 +02:00
1 parent c835944e8d
commit c09a5ffe77
2 files changed
+48 -51

No files matched your search

+6 -6
View File
@@ -74,16 +74,16 @@ class AirportSequencing:
return runway
return None
def findDependentRunway(self, identifier : str):
def findDependentRunways(self, identifier : str):
# runway is unknown
index = self.runwayIndex(identifier)
if 0 > index:
return None
return []
# search the dependency pair
dependencies = []
for dependency in self.RunwayDependencies:
if index == dependency[0]:
return self.ActiveArrivalRunways[dependency[1]]
if index == dependency[0] and not self.ActiveArrivalRunways[dependency[1]] in dependencies:
dependencies.append(self.ActiveArrivalRunways[dependency[1]])
# no dependencies found
return None
return dependencies