rewrote OffsetMirror as devices
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user