add a flag that inidicates if the flight has all relevant information
This commit is contained in:
@@ -115,6 +115,7 @@ class RecedingHorizonControl:
|
||||
sequenced.PlannedTrackmiles = inbound.PlannedTrackmiles
|
||||
sequenced.AssignmentMode = inbound.AssignmentMode
|
||||
sequenced.ExpectedRunway = inbound.ExpectedRunway
|
||||
sequenced.HasValidSequence = True
|
||||
|
||||
# resort the inbound
|
||||
if sequenced.PlannedArrivalTime < self.Windows[index].StartTime or sequenced.PlannedArrivalTime >= self.Windows[index].EndTime:
|
||||
@@ -201,7 +202,8 @@ class RecedingHorizonControl:
|
||||
|
||||
for i in range(0, len(self.Windows)):
|
||||
for inbound in self.Windows[i].Inbounds:
|
||||
inbounds.append(inbound)
|
||||
if True == inbound.HasValidSequence:
|
||||
inbounds.append(inbound)
|
||||
|
||||
return inbounds
|
||||
|
||||
|
||||
Reference in New Issue
Block a user