frappy_psi.attocube: cosmetic fixes

Change-Id: I0211fed9b8cf7993bd0fed0a25486e7339dafdc5
This commit is contained in:
2026-06-09 14:21:21 +02:00
parent e6c0a4c09b
commit 1b63acbe50
+12 -4
View File
@@ -53,6 +53,7 @@ class IO(Module):
def configureAQuadBIn(self, axisNo, enable, resolution):
"""Enables and configures the A-Quad-B (quadrature) input for the target position.
Parameters
axisNo Axis number (0 ... 2)
enable Enable (1) or disable (0) A-Quad-B input
@@ -199,7 +200,9 @@ class IO(Module):
return self._hw.getFrequency(axisNo)
def getPosition(self, axisNo):
"""Retrieves the current actuator position. For linear type actuators the position unit is m; for goniometers and rotators it is degree.
"""Retrieves the current actuator position.
For linear type actuators the position unit is m; for goniometers and rotators it is degree.
Parameters
axisNo Axis number (0 ... 2)
@@ -210,7 +213,10 @@ class IO(Module):
return self._hw.getPosition(axisNo)
def measureCapacitance(self, axisNo):
"""Performs a measurement of the capacitance of the piezo motor and returns the result. If no motor is connected, the result will be 0. The function doesn't return before the measurement is complete; this will take a few seconds of time.
"""Performs a measurement of the capacitance of the piezo motor and returns the result.
If no motor is connected, the result will be 0.
The function doesn't return before the measurement is complete; this will take a few seconds of time.
Parameters
axisNo Axis number (0 ... 2)
@@ -294,7 +300,9 @@ class IO(Module):
return self._hw.setFrequency(axisNo, frequency)
def setTargetPosition(self, axisNo, target):
"""Sets the target position for automatic motion, see ANC_startAutoMove. For linear type actuators the position unit is m, for goniometers and rotators it is degree.
"""Sets the target position for automatic motion, see ANC_startAutoMove.
For linear type actuators the position unit is m, for goniometers and rotators it is degree.
Parameters
axisNo Axis number (0 ... 2)
@@ -374,7 +382,7 @@ class Axis(HasIO, Drivable):
step_mode = Parameter('step mode (soft closed loop)', BoolType(),
default=False, readonly=False, group='step_mode')
timeout = Parameter('timeout after no progress detected', FloatRange(0),
default=1, readonly=False, group='step_mode')
default=1, readonly=False, group='step_mode')
steps_fwd = Parameter('forward steps / main unit', FloatRange(0), unit='$/s',
default=0, readonly=False, group='step_mode')
steps_bwd = Parameter('backward steps / main unit', FloatRange(0, unit='$/s'),