added slow mode and detach time to servo (#896)

* added doc

* Update components/servo.rst

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>

* Update components/servo.rst

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>

* lint

Co-authored-by: Andreas Hergert <andreas.hergert@otrs.com>
Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
Andreas Hergert 2021-01-03 21:56:43 +01:00 committed by GitHub
parent 3460a8fb1b
commit ee69437a14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,9 @@ Advanced Options:
- **restore** (*Optional*, boolean): Whether to restore the state of the servo motor at startup.
This is useful if you have an absolute servo motor and it goes back to its 0 position at startup.
Defaults to ``false``.
- **auto_detach_time** (*Optional*, :ref:`config-time`): The time after reaching the target value when the servo will be detached`, if set to zero, servo will not be detached. Defaults to ``0s``.
- **transition_length** (*Optional*, :ref:`config-time`): The time needed for a full movement (-1.0 to 1.0). This will effectively limit the speed of the servo, the larger the value, the slowest the servo will move. Defaults to `` 0s``
This can slow down the servo to avoid loud noises or just make the movement not jerking.
.. note::