Skip to content

Commit

Permalink
passed hardware testing
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkglaser committed Nov 14, 2023
1 parent f907703 commit 5e50f8e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/tigerasi/tiger_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ def set_speed(self, wait: bool = True, **axes: float):
axes = {x: round(v, MM_SCALE) for x, v in axes.items()}
self._set_cmd_args_and_kwds(Cmds.SPEED, **axes, wait=wait)

# TODO: needs testing.
@axis_check()
def get_speed(self, *axes: str):
"""return the speed from the specified axis in [mm/s] or all axes if
Expand All @@ -429,9 +428,8 @@ def get_speed(self, *axes: str):
"""
return self._get_axis_value(Cmds.SPEED, *axes)

# TODO: needs testing.
@axis_check('wait')
def set_acceleration(self, wait: bool = True, **axes: float):
def set_acceleration(self, **axes: float):
"""Set one or more axis accelerations to a value in [ms].
Implements `ACCEL <https://www.asiimaging.com/docs/products/serial_commands#commandaccel_ac>`_ command.
Expand All @@ -446,9 +444,8 @@ def set_acceleration(self, wait: bool = True, **axes: float):
"""
# Round axes values in ms to 0 decimal places.
axes = {x: round(v, MS_SCALE) for x, v in axes.items()}
self._set_cmd_args_and_kwds(Cmds.ACCEL, **axes, wait=wait)
self._set_cmd_args_and_kwds(Cmds.ACCEL, **axes)

# TODO: needs testing.
@axis_check()
def get_acceleration(self, *axes: str):
"""return the acceleration from the specified axis in [ms] or all axes if
Expand Down

0 comments on commit 5e50f8e

Please sign in to comment.