stoner_measurement.instruments.motor_controller.MotorStatus

class stoner_measurement.instruments.motor_controller.MotorStatus(current_angle: float, target_angle: float | None, moving: bool, homed: bool | None = None, revolutions: int = 0)[source]

Bases: object

Consolidated status snapshot of a motor controller.

Variables:
  • current_angle (float) – Current angular position in degrees.

  • target_angle (float | None) – Current commanded target angle in degrees, if known.

  • moving (bool) – True when motion is currently in progress.

  • homed (bool | None) – True when the stage reports a homed state, False when not homed, or None when unavailable.

  • revolutions (int) – Number of complete revolutions represented by the current absolute angle, rounded down in units of 360 degrees.

current_angle: float
homed: bool | None = None
moving: bool
revolutions: int = 0
target_angle: float | None