pybricks.parameters.Stop: Document COAST_SMART.

See https://github.com/pybricks/pybricks-api/issues/104
This commit is contained in:
Laurens Valk
2022-11-28 17:01:06 +01:00
parent 73c4a449ab
commit 1d5956a58a
2 changed files with 9 additions and 0 deletions
+3
View File
@@ -10,6 +10,9 @@ Stop
.. autoattribute:: pybricks.parameters.Stop.COAST
:annotation:
.. autoattribute:: pybricks.parameters.Stop.COAST_SMART
:annotation:
.. autoattribute:: pybricks.parameters.Stop.BRAKE
:annotation:
+6
View File
@@ -157,6 +157,12 @@ class Stop(_PybricksEnum):
COAST: Stop = 0
"""Let the motor move freely."""
COAST_SMART: Stop = 4
"""Let the motor move freely. For the next relative angle maneuver,
take the last target angle (instead of the current angle) as the new
starting point. This reduces cumulative errors. This will apply only if the
current angle is less than twice the configured position tolerance."""
BRAKE: Stop = 1
"""Passively resist small external forces."""