Skip to content

Commit

Permalink
fixed argument missing error
Browse files Browse the repository at this point in the history
  • Loading branch information
ShisatoYano committed Dec 15, 2024
1 parent b36f3da commit f090c73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_pure_pursuit_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def test_without_course_data():
assert controller.look_ahead_distance_m == 2.0
assert controller.target_course_index == 0

assert controller.update(state) == None
assert controller.update(state, 0.0) == None
assert controller.get_target_accel_mps2() == 0.0
assert controller.get_target_steer_rad() == 0.0
assert controller.get_target_yaw_rate_rps() == 0.0
Expand All @@ -97,7 +97,7 @@ def test_with_course_data():
controller = PurePursuitController(spec, course)
state = MockState(0.0, 1.0, 2.0, 3.0)

controller.update(state)
controller.update(state, 0.0)

assert round(controller.get_target_accel_mps2(), 1) == 1.0
assert round(controller.get_target_steer_rad(), 1) == 0.9
Expand Down

0 comments on commit f090c73

Please sign in to comment.