rewrote OffsetMirror as devices

This commit is contained in:
2022-07-11 12:50:18 +02:00
parent 4e7e52351e
commit cdd3c81a67
2 changed files with 16 additions and 22 deletions
-22
View File
@@ -1,22 +0,0 @@
from slic.devices.general.motor import Motor
class OffsetMirror:
def __init__(self, name=None, ID=None):
self.ID = ID
self.name = name
self.x = Motor(ID + ":W_X")
self.y = Motor(ID + ":W_Y")
self.rx = Motor(ID + ":W_RX")
self.rz = Motor(ID + ":W_RZ")
def out(self):
pass
def move_in(self):
pass
+16
View File
@@ -0,0 +1,16 @@
from slic.core.device import Device
from slic.devices.general.motor import Motor
class OffsetMirror(Device):
def __init__(self, ID, **kwargs):
super().__init__(ID, **kwargs)
self.x = Motor(ID + ":W_X")
self.y = Motor(ID + ":W_Y")
self.rx = Motor(ID + ":W_RX")
self.rz = Motor(ID + ":W_RZ")