fix some bugs in the runway manager during the ETA calculation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user