✨
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
from time import sleep
|
||||
import robot
|
||||
|
||||
POWER = 127
|
||||
|
||||
TURN_T = 0.079 # 10 degrees
|
||||
DRIVE_T = 0.22 # 10 centimeter
|
||||
|
||||
@ -12,11 +10,11 @@ CLOCKWISE_OFFSET = 0.82
|
||||
|
||||
def loop(arlo):
|
||||
while True:
|
||||
arlo.go_diff(POWER, 42, 1, 1)
|
||||
sleep(DRIVE_T * 19)
|
||||
arlo.go_diff(121, 42, 1, 1)
|
||||
sleep(DRIVE_T * 18)
|
||||
|
||||
arlo.go_diff(40, POWER, 1, 1)
|
||||
sleep(DRIVE_T * 19)
|
||||
arlo.go_diff(40, 127, 1, 1)
|
||||
sleep(DRIVE_T * 18)
|
||||
arlo.stop()
|
||||
|
||||
def main():
|
||||
|
Reference in New Issue
Block a user