Closedown

This commit is contained in:
sfop
2016-07-06 11:31:26 +02:00
parent 637237e78b
commit 793481ec17
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -37,7 +37,7 @@ plot_name = datetime.datetime.fromtimestamp(time.time()).strftime('%H%M%S')
add_device(CamTool("camtool") , True)
camtool.setNumberOfImages(number_images)
camtool.setNumberOfImages(max(number_images,1))
camtool.enableBackground (use_background)
if use_background and not multiple_background:
laser_off()
@@ -95,7 +95,8 @@ r = None
if not multiple_background:
laser_on()
try:
sensors = [camtool.com_x, camtool.com_y]
#sensors = [camtool.com_x, camtool.com_y]
sensors = [camtool.com_x_mean, camtool.com_y_mean]
if plot_image:
sensors.append(camtool.image)
r = lscan(gun_solenoid, sensors , I1, I2, dI, settling_time, before_read = br, after_read = ar)