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 007bdeb commit 6daf2af
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 @@ -154,7 +154,7 @@ def simple_check(ultra):
for j in range(2):
# check two times if you can get around obstacle
if turn_dir == 1:
rotate_to_heading(orig_angle, orig_angle + 70) # turn in chosen direction
rotate_to_heading(orig_angle, orig_angle + 100) # turn in chosen direction
else:
rotate_to_heading(orig_angle, orig_angle - 90) # turn in chosen direction
drive.drive_forward()
Expand Down

0 comments on commit 6daf2af

Please sign in to comment.