yaq/traits/has-limits


requires

has-position

configuration

Daemons with the has-limits trait expect the following configuration:

limits (array) default: [-inf, inf]
Configuration limits are strictly optional.

out_of_limits (enum) default: closest
Control behavior of daemon when set_position is given a value outside of limits.

state

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

hw_limits (array)

position (float)
from has-position

destination (float)
from has-position

messages

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

get_limits ➜ {'type': 'array', 'items': 'float'}
Get daemon limits.Limits will be the intersection of config limits and driver limits (when appliciable).

in_limits ➜ boolean
Check if a given position is within daemon limits.
parameters:

position (float)

get_destination ➜ float
Get current daemon destination.
from has-position

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

get_position ➜ float
Get current daemon position.
from has-position

set_position
Give the daemon a new destination, and begin motion towards that destination.
from has-position
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.
from has-position
parameters:

distance (float)

daemons

The following daemons implement the has-limits trait:

acton-2150i
fake-continuous-hardware
lightcon-topas4-motor
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