fix a referencing bug

This commit is contained in:
Sven Czarnian
2021-12-16 08:37:11 +01:00
parent 1bf7d850eb
commit 6fd4f4da1b

View File

@@ -125,7 +125,7 @@ class RecedingHorizonControl:
return None, None
inbounds = []
earliestArrivalTime = self.Windows[self.FreezedIndex].StartTime
earliestArrivalTime = self.Windows[self.FreezedIndex + 1].StartTime
# check the overlapping windows
for i in range(self.FreezedIndex + 1, len(self.Windows)):