This commit is contained in:
NikolajDanger
2022-09-07 11:37:40 +02:00
parent 3150db2415
commit c811384183
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import robot
DRIVE_A = 5.3 # 10 degrees turn at power 1
TURN_A = 16 # 10 centimeter drive at power 1
RIGHT_WHEEL_OFFSET = 4
RIGHT_WHEEL_OFFSET = 0
def square(arlo, power, turn_t, drive_t):
while True:
@ -16,7 +16,7 @@ def square(arlo, power, turn_t, drive_t):
sleep(1)
# Turning 90 degrees
arlo.go_diff(power, power + RIGHT_WHEEL_OFFSET, 1, 0)
arlo.go_diff(power, power + RIGHT_WHEEL_OFFSET, 0, 1)
sleep(turn_t * 9)
arlo.stop()