yaq/traits/has-position


state

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

position (float)

destination (float)

messages

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

get_destination ➜ float
Get current daemon destination.

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

get_position ➜ float
Get current daemon position.

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

position (float)

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

distance (float)

daemons

The following daemons implement the has-position trait:

acton-2150i
fake-continuous-hardware
fake-discrete-hardware
gpio-digital-output
lightcon-topas4-motor
lightcon-topas4-shutter
micro-hr
newport-connex-agp
newport-smc100
pmc
thorlabs-bsc201
thorlabs-k10cr1
thorlabs-kdc101
thorlabs-kst101
thorlabs-lts150
thorlabs-lts300
zaber-binary


built 2020-08-18 17:11:11                                      CC0: no copyright