yaq/traits/has-limits


The has-limits trait extends the has-positions trait with limits. It's assumed that any position within the limits is valid.

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)

messages

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

get_limits ➜ {'type': 'array', 'items': 'double'}
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 (double)

daemons

The following daemons implement the has-limits trait:

acton-2150i
acton-sp2300i
adafruit-stepper-motor-hat
attune
attune-delay
brooks-mfc-gf
dwyer-16b
dwyer-16c
fake-continuous-hardware
fake-has-turret
horiba-ihr320
horiba-micro-hr
lightcon-topas4-motor
mcc-152-aout
ndinterp
new-era-ne1000
newport-conex-agp
newport-smc100
pmc
scpi-set-continuous
thorlabs-bsc201
thorlabs-bsc203
thorlabs-ell18
thorlabs-k10cr1
thorlabs-kdc101
thorlabs-kst101
thorlabs-lts150
thorlabs-lts300
thorlabs-mpc320
wright-aerotech
wright-filter-wheel
wright-stepper-box
wright-wl-motor
zaber-binary


built 2022-11-30 17:44:22                                      CC0: no copyright