Skip to content

Commit f090c73

Browse files
committed
fixed argument missing error
1 parent b36f3da commit f090c73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_pure_pursuit_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def test_without_course_data():
8787
assert controller.look_ahead_distance_m == 2.0
8888
assert controller.target_course_index == 0
8989

90-
assert controller.update(state) == None
90+
assert controller.update(state, 0.0) == None
9191
assert controller.get_target_accel_mps2() == 0.0
9292
assert controller.get_target_steer_rad() == 0.0
9393
assert controller.get_target_yaw_rate_rps() == 0.0
@@ -97,7 +97,7 @@ def test_with_course_data():
9797
controller = PurePursuitController(spec, course)
9898
state = MockState(0.0, 1.0, 2.0, 3.0)
9999

100-
controller.update(state)
100+
controller.update(state, 0.0)
101101

102102
assert round(controller.get_target_accel_mps2(), 1) == 1.0
103103
assert round(controller.get_target_steer_rad(), 1) == 0.9

0 commit comments

Comments
 (0)