Files
X06SA/script/hexiposi_tester.py
Ezequiel Panepucci 985226e9cd improve assertInPosition
- sometimes this is called while the lid is still moving
2023-05-09 12:33:19 +02:00

13 lines
361 B
Python

import random
import time
def hexiposi_tester(num_moves = 10, wait = 3.0):
release_safety()
for n in range(num_moves):
pos = random.choice("ABCDEF")
print str(n) + " of " + str(num_moves) + ") moving to " + pos
hexiposi.move(pos)
#print " sleep " + str(wait) + " s"
time.sleep(wait)
print " done "