This commit is contained in:
11
script/test/TestCameraStability1.py
Normal file
11
script/test/TestCameraStability1.py
Normal 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)
|
||||
|
||||
11
script/test/TestCameraStability2.py
Normal file
11
script/test/TestCameraStability2.py
Normal 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"
|
||||
|
||||
9
script/test/TestCameraStability3.py
Normal file
9
script/test/TestCameraStability3.py
Normal 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")
|
||||
|
||||
Reference in New Issue
Block a user