Skip to content

Commit

Permalink
sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
SuragNuthulapaty committed Feb 24, 2024
1 parent b75daa8 commit bee971c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/full.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@


MOTOR_OFFSET = 1
DT = 0.25

#first we need to start the timer at the start of the program
#the normal behaviour is that the robot will move forward for 10 seconds and then take a 90 degree turn and it will keep doing this so it moves in a square
Expand All @@ -37,6 +38,7 @@ def move_in_square():

left_motor.forward(1)
right_motor.forward(1*MOTOR_OFFSET)
sleep(DT)

stop()
motor_rotations.rotate_cw_90_deg(left_motor, right_motor)
Expand Down

0 comments on commit bee971c

Please sign in to comment.