Skip to content

Commit

Permalink
square
Browse files Browse the repository at this point in the history
  • Loading branch information
SuragNuthulapaty committed Feb 24, 2024
1 parent 6c3e5cd commit a3c08ee
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions code/moving_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@
right_motor.stop()
time.sleep(dt)

motor_rotations.move_forward(left_motor, right_motor, 2)
motor_rotations.rotate_cw_90_deg(left_motor, right_motor)
motor_rotations.move_forward(left_motor, right_motor, 2)
motor_rotations.rotate_ccw_90_deg(left_motor, right_motor)
motor_rotations.rotate_ccw_90_deg(left_motor, right_motor)
motor_rotations.move_forward(left_motor, right_motor, 2)
motor_rotations.rotate_ccw_90_deg(left_motor, right_motor)
motor_rotations.move_forward(left_motor, right_motor, 2)
for _ in range(8):
motor_rotations.move_forward(left_motor, right_motor, 2)
motor_rotations.rotate_cw_90_deg(left_motor, right_motor)
# motor_rotations.move_forward(left_motor, right_motor, 2)
# motor_rotations.rotate_ccw_90_deg(left_motor, right_motor)
# motor_rotations.rotate_ccw_90_deg(left_motor, right_motor)
# motor_rotations.move_forward(left_motor, right_motor, 2)
# motor_rotations.rotate_ccw_90_deg(left_motor, right_motor)
# motor_rotations.move_forward(left_motor, right_motor, 2)

0 comments on commit a3c08ee

Please sign in to comment.