Source code for pyobs.interfaces.IRotation

from abc import ABCMeta, abstractmethod
from typing import Any

from .IMotion import IMotion

class IRotation(IMotion, metaclass=ABCMeta):
    """The module controls a device that can rotate."""

    __module__ = "pyobs.interfaces"

[docs] @abstractmethod async def set_rotation(self, angle: float, **kwargs: Any) -> None: """Sets the rotation angle to the given value in degrees.""" ...
[docs] @abstractmethod async def get_rotation(self) -> float: """Returns the current rotation angle.""" ...
__all__ = ["IRotation"]