add a flag that inidicates if the flight has all relevant information

This commit is contained in:
Sven Czarnian
2021-12-25 08:58:12 +01:00
parent 5ef3d4e40a
commit bf6417c66c
3 changed files with 4 additions and 9 deletions

View File

@@ -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