From 815e03bd55bbce3fc6d11c4aade9702095782f58 Mon Sep 17 00:00:00 2001 From: SuragNuthulapaty <77648585+SuragNuthulapaty@users.noreply.github.com> Date: Sat, 24 Feb 2024 14:03:43 -0600 Subject: [PATCH] proper rotations --- code/full.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/full.py b/code/full.py index 8c13962..d930088 100644 --- a/code/full.py +++ b/code/full.py @@ -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()