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()