From 0dd98936ec8bbc939ca867583e2aadeb46748348 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Wed, 7 Sep 2022 13:14:59 +0200 Subject: [PATCH] :sparkles: --- square.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/square.py b/square.py index ee0bf0a..eef1ad6 100644 --- a/square.py +++ b/square.py @@ -3,10 +3,10 @@ import robot POWER = 70 -TURN_T = 0.076 # 10 degrees +TURN_T = 0.079 # 10 degrees DRIVE_A = 16 # 10 centimeter drive at power 1 -TURN_COUNTER_OFFSET = 1.042 +CLOCKWISE_OFFSET = 0.96 def square(arlo, drive_t): while True: @@ -19,7 +19,7 @@ def square(arlo, drive_t): # Turning 90 degrees arlo.go_diff(POWER, POWER, 0, 1) - sleep(TURN_T * 9 * TURN_COUNTER_OFFSET) + sleep(TURN_T * 9) arlo.stop() sleep(1)