Script execution
This commit is contained in:
@@ -28,18 +28,18 @@ cam_raw_data = Channel("SINEG01-DSCR190:data")
|
||||
class CameraImage(ReadableMatrix):
|
||||
def read(self):
|
||||
raw = cam_raw_data.read()
|
||||
#m = Matrix(mono_to_bidi(raw, getHeight(), getWidth()))
|
||||
#return m.transpose.getData()
|
||||
ret = []
|
||||
for i in range (self.getHeight()):
|
||||
ret.append(raw[i*self.getWidth() : (i+1)*self.getWidth()])
|
||||
return ret
|
||||
m = Matrix(mono_to_bidi(raw, self.getHeight(), self.getWidth()))
|
||||
return m.transpose.getData()
|
||||
#ret = []
|
||||
#for i in range (self.getHeight()):
|
||||
# ret.append(raw[i*self.getWidth() : (i+1)*self.getWidth()])
|
||||
#return ret
|
||||
|
||||
def getWidth(self):
|
||||
return 480
|
||||
return 640
|
||||
|
||||
def getHeight(self):
|
||||
return 640
|
||||
return 480
|
||||
|
||||
cam_img = CameraImage()
|
||||
|
||||
@@ -84,8 +84,8 @@ mag = [ "SINEG01-MCRX120","SINEG01-MCRY120",
|
||||
"SINEG01-MQUA320" ]
|
||||
for m in mag:
|
||||
caput(m + ":I-SET", 0.0)
|
||||
#for m in mag:
|
||||
# ccr(m)
|
||||
for m in mag:
|
||||
ccr(m)
|
||||
|
||||
laser_on()
|
||||
# Scan using the screen
|
||||
|
||||
Reference in New Issue
Block a user