stoner_measurement.plugins.state._motor_controller_plugin.MotorControllerPluginMixin

class stoner_measurement.plugins.state._motor_controller_plugin.MotorControllerPluginMixin[source]

Bases: object

Shared engine-backed behaviour for motor state scan/sweep plugins.

property angle: float

Return the latest measured motor angle in degrees.

property angular_rate: float

Return the estimated angular rate in degrees per second.

configure() → None[source]

Push the configured velocity and acceleration into the engine.

connect() → None[source]

Ensure that a shared motor-controller engine is available.

property controller_features: frozenset[str]
declared_outputs() → PluginOutputs[source]

Declare configured outputs and their physical units together.

disconnect() → None[source]

Leave the shared engine running.

get_state() → float[source]

Return the best current estimate of the motor angle in degrees.

is_at_target() → bool[source]

Return True when the engine reports the motor at its target.

property limits: tuple[float, float]

Return the nominal scan limits exposed by this plugin.

set_rate(value: float) → None[source]

Update the motion velocity used for subsequent movements.

set_state(value: float) → None[source]

Move the controller to the requested absolute angular set-point.

set_target(value: float) → None[source]

Compatibility alias that forwards to set_state().

property target_angle: float

Return the current target angle in degrees, if known.