diff --git a/code/moving_test.py b/code/moving_test.py index 29eb8cf..ea454d6 100644 --- a/code/moving_test.py +++ b/code/moving_test.py @@ -40,8 +40,6 @@ time.sleep(dt) while True: - 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) @@ -49,8 +47,10 @@ # motor_rotations.rotate_ccw_90_deg(left_motor, right_motor) # motor_rotations.move_forward(left_motor, right_motor, 2) try: - pass + motor_rotations.move_forward(left_motor, right_motor, 2) + motor_rotations.rotate_cw_90_deg(left_motor, right_motor) except KeyboardInterrupt: + print("here") left_motor.stop() right_motor.stop() exit(0)