pylabrobot.formulatrix.mantis.driver.events#

The events a Mantis sends unasked, and what each carries.

An event is a device frame with a code from FIRST_EVENT_CODE to 0x7FFF; every one seen came from board 0. Its packet number echoes a recent command and matches nothing. Payloads are little-endian. A code not listed here, such as 0x7FFF with no payload, is logged by its number.

Functions

decode_home_done(payload)

A home-done event's motor and two values, in the device's units.

decode_input_changed(payload)

An input-changed event's input and whether it is on.

decode_motion_started(payload)

The motor a motion-started event names.

decode_motor_error(payload)

A motor-error event's motor and code.

decode_move_done(payload)

A move-done event's motor, status word and three values, in the device's units.

decode_sequence_progress(payload)

A sequence-progress event's item, the items still queued and the free slots.

decode_sequence_stopped(payload)

A sequence-stopped event's last item and its second word.

describe_event(*, code, payload)

An event in words, for the log; a code not decoded here by its number and payload.