Script execution

This commit is contained in:
sfop
2016-07-06 11:05:07 +02:00
parent 781bc8df23
commit a7557b8486

View File

@@ -49,12 +49,13 @@ class CamTool(DeviceBase):
self.num_images = 1
self.image = CamToolImage(self)
set_device_alias(self.image, name + " image")
self.com_x_samples = [1.0,2.0, 3.0]
class CamToolComX(Readable):
def read(self):
def read(self):
print dir(self)
return mean(self.com_x_samples)
self.com_x_mean = CamToolComX()
self.com_x_mean.com_x_samples = [1.0,2.0, 3.0]
self.com_x_mean = CamToolComX()
set_device_alias(self.com_x_mean, name + " com x mean")
def doInitialize(self):
@@ -125,7 +126,7 @@ class CamTool(DeviceBase):
if __name__ == "__builtin__":
camera_tool = CamTool("camtool")
print camtool.com_x_mean.read()
camera_tool.enableBackground(False)
camera_tool.enableBackground(True)
camera_tool.captureBackground(5)