This commit is contained in:
NikolajDanger
2022-09-07 13:17:57 +02:00
parent 0dd98936ec
commit 916829aecb

View File

@ -11,14 +11,14 @@ CLOCKWISE_OFFSET = 0.96
def square(arlo, drive_t): def square(arlo, drive_t):
while True: while True:
# Driving forward # Driving forward
arlo.go_diff(POWER, POWER, 1, 1) arlo.go_diff(POWER, POWER+4, 1, 1)
sleep(drive_t * 10) sleep(drive_t * 10)
arlo.stop() arlo.stop()
sleep(1) sleep(1)
# Turning 90 degrees # Turning 90 degrees
arlo.go_diff(POWER, POWER, 0, 1) arlo.go_diff(POWER, POWER+4, 0, 1)
sleep(TURN_T * 9) sleep(TURN_T * 9)
arlo.stop() arlo.stop()