Sven Czarnian пре 3 година
родитељ
комит
6fd4f4da1b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      aman/sys/RecedingHorizonControl.py

+ 1 - 1
aman/sys/RecedingHorizonControl.py

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