Skip to content

Commit

Permalink
proper rotations
Browse files Browse the repository at this point in the history
  • Loading branch information
SuragNuthulapaty committed Feb 24, 2024
1 parent 4880704 commit 815e03b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/full.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ def move_in_square():
led1.on()
temp_start_time = time.time()
handle_obstacle(distance1, distance2)
start_time -= (time.time() - temp_start_time)
start_time += (time.time() - temp_start_time)

led1.off()
left_motor.forward(1)
right_motor.forward(1*MOTOR_OFFSET)
motor_rotations.move_forward(left_motor, right_motor, 1, s1=1, s2=1)
sleep(DT)

led2.on()
Expand Down

0 comments on commit 815e03b

Please sign in to comment.