Skip to content

Commit c4c7d59

Browse files
authored
fixed the scope of range function (#1276)
1 parent 722efb8 commit c4c7d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PathTracking/model_predictive_speed_and_steer_control/model_predictive_speed_and_steer_control.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def calc_ref_trajectory(state, cx, cy, cyaw, ck, sp, dl, pind):
318318

319319
travel = 0.0
320320

321-
for i in range(T + 1):
321+
for i in range(1, T + 1):
322322
travel += abs(state.v) * DT
323323
dind = int(round(travel / dl))
324324

0 commit comments

Comments
 (0)