This commit is contained in:
gac-S_Changer
2018-09-04 13:32:11 +02:00
parent 03a3023b4d
commit 07664f8749
7 changed files with 54 additions and 7 deletions

View File

@@ -0,0 +1,11 @@
for i in range(10):
time.sleep(2)
move_home()
time.sleep(1)
move_park()
start = time.time()
while get_img_cover_pos() != 'A':
print ".",
time.sleep(0.001)
print "Time = " , ( time.time() - start)

View File

@@ -0,0 +1,11 @@
cover_detection_debug=False
for pos in ['A', 'B', 'C', 'D', 'E', 'F']:
print "Moving to ", pos
hexiposi.move(pos)
ret = run("imgproc/CoverDetection")
det = ret[0]
print "Detected: ", det
if det != pos:
raise "Position error"

View File

@@ -0,0 +1,9 @@
for i in range(10):
time.sleep(1)
move_home()
time.sleep(1)
move_park()
start = time.time()
time.sleep(1.0)
print run("imgproc/LedDetectionProc.py")