fix(flomni,omny): expose motor tolerance to scan-server device proxy
self.dev.fsamroy/.osamroy on the scan server is a generic bec_lib Positioner proxy rebuilt from serialized device info, not the real ophyd instance. tolerance was only a plain __init__ attribute, so it was dropped during serialization and flomni_rotation()/rotation() crashed with AttributeError: 'Positioner' object has no attribute 'tolerance'. Register tolerance in USER_ACCESS so it serializes and is reachable via RPC like controller already is.
This commit was merged in pull request #296.
This commit is contained in:
@@ -113,7 +113,7 @@ class FuprGalilAxesReferenced(GalilAxesReferenced):
|
||||
|
||||
|
||||
class FuprGalilMotor(Device, PositionerBase):
|
||||
USER_ACCESS = ["controller"]
|
||||
USER_ACCESS = ["controller", "tolerance"]
|
||||
MOTOR_RESOLUTION = 25600
|
||||
readback = Cpt(FuprGalilReadbackSignal, signal_name="readback", kind="hinted")
|
||||
user_setpoint = Cpt(FuprGalilSetpointSignal, signal_name="setpoint")
|
||||
|
||||
@@ -241,6 +241,7 @@ class OMNYGalilMotor(Device, PositionerBase):
|
||||
"axis_is_referenced",
|
||||
"get_motor_temperature",
|
||||
"folerr_status",
|
||||
"tolerance",
|
||||
]
|
||||
readback = Cpt(OMNYGalilReadbackSignal, signal_name="readback", kind="hinted")
|
||||
user_setpoint = Cpt(GalilSetpointSignal, signal_name="setpoint")
|
||||
|
||||
Reference in New Issue
Block a user