stoner_measurement.instruments.motor_controller.Motor¶
- class stoner_measurement.instruments.motor_controller.Motor(*args, **kwargs)[source]¶
Bases:
ProtocolProtocol describing the expected motor interface.
- has_reached_target_position(tolerance: float = 0.01) bool[source]¶
Return
Truewhen current and target positions are within tolerance.
- move_home(direction: MotorMoveDirection = MotorMoveDirection.CLOCKWISE) None[source]¶
Move to the configured home position.
- move_relative(angle: float, direction: MotorMoveDirection = MotorMoveDirection.CLOCKWISE) None[source]¶
Move by angle degrees in direction.
- move_to_angle(angle: float, direction: MotorMoveDirection = MotorMoveDirection.CLOCKWISE) None[source]¶
Move to an absolute angle in degrees.