fix different interpretations of the freezed index

This commit is contained in:
Sven Czarnian
2021-12-15 13:18:16 +01:00
parent 1e031dcb7c
commit 1bf7d850eb

View File

@@ -73,7 +73,8 @@ class RecedingHorizonControl:
plannedInbound.ReportTime = inbound.ReportTime
plannedInbound.CurrentPosition = inbound.CurrentPosition
# ingore fixed updates
if True == plannedInbound.FixedSequence or index < self.FreezedIndex:
if True == plannedInbound.FixedSequence or index <= self.FreezedIndex:
plannedInbound.FixedSequence = True
return
plannedInbound.WTC = inbound.WTC
@@ -167,7 +168,7 @@ class RecedingHorizonControl:
if 0 != offsetCorrection:
for callsign in self.AssignedWindow:
self.AssignedWindow[callsign][0] -= offsetCorrection
if self.AssignedWindow[callsign][0] < self.FreezedIndex:
if self.AssignedWindow[callsign][0] <= self.FreezedIndex:
self.Windows[self.AssignedWindow[callsign][0]].inbound(callsign).FixedSequence = True
# delete the non-updated aircrafts and increase the missed-counter for later runs