✨
This commit is contained in:
1 parent
943855b784
commit
0dd98936ec
1 file changed
+3
-3
@@ -3,10 +3,10 @@ import robot
|
||||
|
||||
POWER = 70
|
||||
|
||||
TURN_T = 0.076 # 10 degrees
|
||||
TURN_T = 0.079 # 10 degrees
|
||||
DRIVE_A = 16 # 10 centimeter drive at power 1
|
||||
|
||||
TURN_COUNTER_OFFSET = 1.042
|
||||
CLOCKWISE_OFFSET = 0.96
|
||||
|
||||
def square(arlo, drive_t):
|
||||
while True:
|
||||
@@ -19,7 +19,7 @@ def square(arlo, drive_t):
|
||||
|
||||
# Turning 90 degrees
|
||||
arlo.go_diff(POWER, POWER, 0, 1)
|
||||
sleep(TURN_T * 9 * TURN_COUNTER_OFFSET)
|
||||
sleep(TURN_T * 9)
|
||||
arlo.stop()
|
||||
|
||||
sleep(1)
|
||||
|
||||
Reference in new issue
Block a user