From 943855b7849d879e084492d4048185d46c01e7e2 Mon Sep 17 00:00:00 2001 From: NikolajDanger Date: Wed, 7 Sep 2022 13:12:05 +0200 Subject: [PATCH] :sparkles: --- turn_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/turn_test.py b/turn_test.py index cc6fecd..4462a69 100644 --- a/turn_test.py +++ b/turn_test.py @@ -3,6 +3,7 @@ import robot POWER = 70 TURN_T = 0.079 # 10 degrees turn at given power +CLOCKWISE_OFFSET = 0.96 def main(): turn_degrees = int(input(":")) @@ -10,8 +11,8 @@ def main(): # Initializes the robot and runs the arlo = robot.Robot() - arlo.go_diff(POWER, POWER, 0, 1) - sleep(TURN_T * (turn_degrees/10)) + arlo.go_diff(POWER, POWER, 1, 0) + sleep(TURN_T * (turn_degrees/10) * CLOCKWISE_OFFSET) arlo.stop()