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 6, 2024
1 parent 52aa092 commit 2d33ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def simple_check(ultra):
for i in range(2):
for j in range(2):
# check two times if you can get around obstacle
rotate_to_heading(orig_angle, (orig_angle + (80 * turn_dir)) % 360) # turn in chosen direction
rotate_to_heading(orig_angle, (orig_angle + (100 * turn_dir)) % 360) # turn in chosen direction
drive.drive_forward()
time.sleep(forward_time)
angle = gps.get_heading()
Expand Down

0 comments on commit 2d33ec5

Please sign in to comment.