From aca50ee3100dd3210e154de957572d64aec7825f Mon Sep 17 00:00:00 2001 From: menzel Date: Fri, 13 Nov 2026 08:45:31 +0100 Subject: [PATCH] fix(smargon): OZ is an O-vector length in mm, not deg OX/OY/OZ are components of the SCS offset vector, which /nudgeOBCS shifts in mm along the beamline axes; the API example reports OZ: 300.0. Co-Authored-By: Claude Opus 5.5 --- csaxs_bec/devices/smargon/transport/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/csaxs_bec/devices/smargon/transport/base.py b/csaxs_bec/devices/smargon/transport/base.py index 530d42a6..cd017100 100644 --- a/csaxs_bec/devices/smargon/transport/base.py +++ b/csaxs_bec/devices/smargon/transport/base.py @@ -17,6 +17,8 @@ smargopolo runs the kinematics; we drive the *virtual* SmarGon Coordinate System * **SCS** -- the user axes: ``SHX SHY SHZ OMEGA CHI PHI OX OY OZ`` (mm and deg). Settable via ``/targetSCS`` (+ ``/targetSCS_rel``), read via ``/readbackSCS``. + ``OX OY OZ`` are the O-vector (offset) components, a length in mm like ``SH*``; + ``/nudgeOBCS`` shifts the same vector in the beamline frame. * **MCS** -- the raw motor positions ``q1..q6``, read-only via ``/readbackMCS`` (diagnostics only; we never command them directly). * **BCS** -- beamline-frame nudges ``BX BY BZ`` via ``/nudgeBCS`` / ``/nudgeOBCS`` @@ -98,7 +100,7 @@ AXIS_INFO: dict[Axis, AxisLimits] = { Axis.PHI: AxisLimits(egu="deg"), Axis.OX: AxisLimits(egu="mm"), Axis.OY: AxisLimits(egu="mm"), - Axis.OZ: AxisLimits(egu="deg"), + Axis.OZ: AxisLimits(egu="mm"), # O-vector component (mm), not an angle }