fix different interpretations of the freezed index
This commit is contained in:
@@ -73,7 +73,8 @@ class RecedingHorizonControl:
|
|||||||
plannedInbound.ReportTime = inbound.ReportTime
|
plannedInbound.ReportTime = inbound.ReportTime
|
||||||
plannedInbound.CurrentPosition = inbound.CurrentPosition
|
plannedInbound.CurrentPosition = inbound.CurrentPosition
|
||||||
# ingore fixed updates
|
# ingore fixed updates
|
||||||
if True == plannedInbound.FixedSequence or index < self.FreezedIndex:
|
if True == plannedInbound.FixedSequence or index <= self.FreezedIndex:
|
||||||
|
plannedInbound.FixedSequence = True
|
||||||
return
|
return
|
||||||
plannedInbound.WTC = inbound.WTC
|
plannedInbound.WTC = inbound.WTC
|
||||||
|
|
||||||
@@ -167,7 +168,7 @@ class RecedingHorizonControl:
|
|||||||
if 0 != offsetCorrection:
|
if 0 != offsetCorrection:
|
||||||
for callsign in self.AssignedWindow:
|
for callsign in self.AssignedWindow:
|
||||||
self.AssignedWindow[callsign][0] -= offsetCorrection
|
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
|
self.Windows[self.AssignedWindow[callsign][0]].inbound(callsign).FixedSequence = True
|
||||||
|
|
||||||
# delete the non-updated aircrafts and increase the missed-counter for later runs
|
# delete the non-updated aircrafts and increase the missed-counter for later runs
|
||||||
|
|||||||
Reference in New Issue
Block a user