Skip to content

Commit 75e94dc

Browse files
authored
Add XYRoll stage, bs1 - bs3 motors (#1738)
1 parent f560ee7 commit 75e94dc

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

src/dodal/beamlines/i22.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from dodal.devices.i22.fswitch import FSwitch
2020
from dodal.devices.i22.nxsas import NXSasMetadataHolder, NXSasOAV, NXSasPilatus
2121
from dodal.devices.linkam3 import Linkam3
22-
from dodal.devices.motors import XYPitchStage
22+
from dodal.devices.motors import XYPitchStage, XYRollStage, XYStage
2323
from dodal.devices.slits import Slits
2424
from dodal.devices.synchrotron import Synchrotron
2525
from dodal.devices.tetramm import TetrammDetector
@@ -274,3 +274,18 @@ def ppump() -> WatsonMarlow323Pump:
274274
@device_factory()
275275
def base() -> XYPitchStage:
276276
return XYPitchStage(f"{PREFIX.beamline_prefix}-MO-STABL-01:")
277+
278+
279+
@device_factory()
280+
def bs1() -> XYStage:
281+
return XYStage(f"{PREFIX.beamline_prefix}-MO-SAXSP-01:BS1:")
282+
283+
284+
@device_factory()
285+
def bs2() -> XYStage:
286+
return XYStage(f"{PREFIX.beamline_prefix}-MO-SAXSP-01:BS2:")
287+
288+
289+
@device_factory()
290+
def bs3() -> XYRollStage:
291+
return XYRollStage(f"{PREFIX.beamline_prefix}-MO-SAXSP-01:BS3:")

src/dodal/devices/motors.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,20 @@ def __init__(
122122
super().__init__(prefix, name, x_infix, y_infix)
123123

124124

125+
class XYRollStage(XYStage):
126+
def __init__(
127+
self,
128+
prefix: str,
129+
x_infix: str = _X,
130+
y_infix: str = _Y,
131+
roll_infix: str = "ROLL",
132+
name: str = "",
133+
) -> None:
134+
with self.add_children_as_readables():
135+
self.roll = Motor(prefix + roll_infix)
136+
super().__init__(prefix, name, x_infix, y_infix)
137+
138+
125139
class XYZPitchYawStage(XYZStage):
126140
def __init__(
127141
self,

0 commit comments

Comments
 (0)