Skip to content

Commit 41f98f3

Browse files
authored
Update planner_ctrl.py
fix points[star] index out
1 parent b312a9e commit 41f98f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/planner_ctrl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def callback(data):
5454
pointnumber = len(data.points)
5555
if pointnumber <= 11:
5656
# waypoint_limt <= 9
57-
star = pointnumber
57+
star = pointnumber - 1
5858
else:
5959
# waypoint_limt = 2
6060
star = 0
@@ -159,4 +159,4 @@ def calibration(data):
159159
pass
160160

161161

162-
rate.sleep()
162+
rate.sleep()

0 commit comments

Comments
 (0)