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