yaq/traits/has-position


Daemons with this trait have one specific value that describes their current position. This position can be set (using the set_position method). In general, these daemons may not be able to reach exactly the set position. The destination (get_destination) returns exactly the set position, while the position (get_position) returns the current actual position of the daemon. These daemons should start motion and become busy when set_daemon is called. They should release busy once they arrive as close as possible to the destination, and their position should not change until set_position is called again.

state

Daemons with the has-position trait will provide the following state information:

position (double)

destination (double)

messages

Daemons with the has-position trait expose the following public messages:

get_destination ➜ double
Get current daemon destination.

get_units ➜ ['null', 'string']
Get units of daemon. These units apply to the position and destination properties.

get_position ➜ double
Get current daemon position.

set_position
Give the daemon a new destination, and begin motion towards that destination.
parameters:

position (double)

set_relative ➜ double
Give the daemon a new destination relative to its current position. Daemon will immediately begin motion towards new destination. Returns new destination.
parameters:

distance (double)

daemons

The following daemons implement the has-position trait:

acton-2150i
acton-sp2300i
adafruit-stepper-motor-hat
attune
attune-delay
bronkhorst-mfc-flow-bus
bronkhorst-mfc-rs232
brooks-mfc-gf
dwyer-16b
dwyer-16c
ekspla-nt340
fake-continuous-hardware
fake-discrete-hardware
fake-furnace
fake-has-transformed-position
fake-has-turret
gpio-digital-output
horiba-ihr320
horiba-micro-hr
kd-scientific-legato100
labjack-digital-output
lightcon-topas4-motor
lightcon-topas4-shutter
mcc-152-aout
ndinterp
new-era-continuous-nextgen
new-era-ne1000
newport-conex-agp
newport-smc100
omega-iseries-modbus
pmc
scpi-set-continuous
scpi-set-discrete
thorlabs-bsc201
thorlabs-bsc203
thorlabs-ell18
thorlabs-k10cr1
thorlabs-kdc101
thorlabs-kst101
thorlabs-lts150
thorlabs-lts300
thorlabs-mpc320
vici-two-position
wright-aerotech
wright-filter-wheel
wright-stepper-box
wright-wl-motor
zaber-binary


built 2024-02-09 01:44:16                                      CC0: no copyright