Browse Source

fix a referencing bug

Sven Czarnian 3 years ago
parent
commit
6fd4f4da1b
1 changed files with 1 additions and 1 deletions
  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)):