Explorar el Código

fix a referencing bug

Sven Czarnian hace 3 años
padre
commit
6fd4f4da1b
Se han modificado 1 ficheros con 1 adiciones y 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)):