浏览代码

fix a referencing bug

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