Skip to content

Commit

Permalink
updated ultrasonic function
Browse files Browse the repository at this point in the history
  • Loading branch information
valenmoore committed May 8, 2024
1 parent 7757ff7 commit 7f450b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nes.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def wpm_controller(self, control_input):
left_speed = 0
right_speed = 0
elif control_input == "up":
left_speed = -config.drive_speed
right_speed = -config.drive_speed
left_speed = -config.drive_speed_turning
right_speed = -config.drive_speed_turning
elif control_input == "down":
left_speed = config.drive_speed
right_speed = config.drive_speed
left_speed = config.drive_speed_turning
right_speed = config.drive_speed_turning
elif control_input == "left":
left_speed = config.drive_speed_turning
right_speed = -config.drive_speed_turning
Expand Down

0 comments on commit 7f450b9

Please sign in to comment.