YEP: | 303 |
---|---|
Title: | has-limits |
Authors: | Blaise Thompson |
Status: | accepted |
Tags: | trait |
Post-History: | 2020-04-22, 2020-07-14 |
This YEP defines the has-limits trait.
This trait has been accepted. See built documentation at at yaq.fyi.
A subset of positional hardware has exactly two limits. This trait standardies the interface to such hardware.
This trait requires has-position, see YEP-301.
type: array
default: [-inf, inf]
Configuration limits are strictly optional.
type: enum
default: closest
Control behavior of daemon when set_position is given a value outside of limits.
type: array
response: {'type': 'array', 'items': 'float'}
Get daemon limits.Limits will be the intersection of config limits and driver limits (when applicable).
parameters: position: float
response: boolean
Check if a given position is within daemon limits.
This document is placed in the public domain or under the CC0-1.0-Universal license, whichever is more permissive.
built 2023-10-10 23:52:42 CC0: no copyright