Source code for neclib.devices.motor.motor_base

from abc import abstractmethod

import astropy.units as u

from ..device_base import DeviceBase


[docs]class Motor(DeviceBase): Manufacturer: str = "" Model: str
[docs] @abstractmethod def set_step(self, step: int, axis: str) -> None: """Drive to (maybe device-specific) absolute position.""" ...
[docs] @abstractmethod def set_speed(self, speed: float, axis: str) -> None: ...
[docs] @abstractmethod def get_step(self, axis: str) -> int: """Maybe device-specific absolute position.""" ...
[docs] @abstractmethod def get_speed(self, axis: str) -> u.Quantity: ...
[docs] @abstractmethod def finalize(self) -> None: ...