stoner_measurement.instruments.xray.protocol.ControllerStatus

class stoner_measurement.instruments.xray.protocol.ControllerStatus(raw_motor: int, raw_limits: int, motor0_direction: bool, motor0_enabled: bool, motor1_direction: bool, motor1_enabled: bool, limit_input_1: bool, limit_latch_1: bool, data_ready: bool, overflow_or_infinite: bool)[source]

Bases: object

Raw and provisional status flags from snapshot bytes one and two.

data_ready: bool
classmethod from_bytes(motor: int, limits: int) → ControllerStatus[source]

Decode provisional names while retaining both authoritative bytes.

limit_input_1: bool
limit_latch_1: bool
motor0_direction: bool
motor0_enabled: bool
motor1_direction: bool
motor1_enabled: bool
overflow_or_infinite: bool
raw_limits: int
raw_motor: int