Skip to content

Update pseudopos set_current_position to also update notepad signal #1410

@ZLLentz

Description

@ZLLentz

Current Behavior

In pseudopositioner:

def _update_position(self):
"""Update the pseudo position based on that of the real positioners."""
position = super()._update_position()
if self._my_move:
self._update_notepad_ioc(position, 'notepad_readback')
return position
def set_current_position(self, position):
"""
Adjust all offsets so that the pseudo position matches the input.
This will raise an AttributeError if any of the real motors is missing
a ``set_current_position`` method.
Parameters
----------
position : PseudoPos
The position
"""
real_pos = self.forward(position)
for motor, pos in zip(self._real, real_pos):
motor.set_current_position(pos)

The notepad readback gets out of sync for the same reason explained in #1409

Expected Behavior

When we set_current_position, the notepad readback should be updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions