Skip to content

Commit

Permalink
Merge pull request #63 from spacetelescope/bugfix/newport_relative_move
Browse files Browse the repository at this point in the history
Fix NewportXPS relative move.
  • Loading branch information
asahooexo authored Nov 17, 2022
2 parents 988d240 + b83d9f0 commit 9770c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catkit2/testbed/proxies/newport_xps.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def move_absolute(self, motor_id, position, timeout=None):
def move_relative(self, motor_id, distance, timeout=None):
# Get current position.
stream = getattr(self, motor_id.lower() + '_current_position')
current_position = stream.get()
current_position = stream.get()[0]

new_position = current_position + distance

Expand Down

0 comments on commit 9770c67

Please sign in to comment.