Explorar o código

fix a referencing bug

Sven Czarnian %!s(int64=3) %!d(string=hai) anos
pai
achega
6fd4f4da1b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      aman/sys/RecedingHorizonControl.py

+ 1 - 1
aman/sys/RecedingHorizonControl.py

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