Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Y
yaq enhancement proposals
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaq
yaq enhancement proposals
Commits
c2c2007a
Commit
c2c2007a
authored
Jul 14, 2020
by
Kyle Sunden
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '303' into 'master'
YEP-303: has-limits See merge request
!40
parents
15472652
7f8c3284
Pipeline
#166580546
canceled with stage
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
3 deletions
+64
-3
yeps/yep-303.md
yeps/yep-303.md
+64
-3
No files found.
yeps/yep-303.md
View file @
c2c2007a
---
yep
:
303
title
:
has-limits
author
:
Blaise Thompson
status
:
draft
author
:
Blaise Thompson
<blaise@untzag.com>
status
:
accepted
tags
:
trait
post-history
:
2020-04-22
2020-07-14
---
This YEP is a stub.
# Abstract
This YEP defines the has-limits trait.
This trait has been accepted.
See built documentation at at
[
yaq.fyi
](
https://yaq.fyi/traits/has-limits
)
.
# Table of Contents
[TOC]
# Motivation
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
](
https://yeps.yaq.fyi/301/
)
.
# Proposal
## config: limits
type: array
default: [-inf, inf]
Configuration limits are strictly optional.
## config: out_of_limits
type: enum
default: closest
Control behavior of daemon when set_position is given a value outside of limits.
## state: hw_limits
type: array
## message: get_limits
response: {'type': 'array', 'items': 'float'}
Get daemon limits.Limits will be the intersection of config limits and driver limits (when appliciable).
## messages: in_limits
parameters: position: float
response: boolean
Check if a given position is within daemon limits.
# Discussion
Discussion can be found on the
[
gitlab issue
](
https://gitlab.com/yaq/yeps/-/issues/16
)
for this YEP.
# Copyright
This document is placed in the public domain or under the CC0-1.0-Universal license, whichever is more permissive.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment