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:
objectConsolidated 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) –
Truewhen motion is currently in progress.homed (bool | None) –
Truewhen the stage reports a homed state,Falsewhen not homed, orNonewhen unavailable.revolutions (int) – Number of complete revolutions represented by the current absolute angle, rounded down in units of 360 degrees.