mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
pybricks.parameters.Stop: Document COAST_SMART.
See https://github.com/pybricks/pybricks-api/issues/104
This commit is contained in:
@@ -10,6 +10,9 @@ Stop
|
||||
.. autoattribute:: pybricks.parameters.Stop.COAST
|
||||
:annotation:
|
||||
|
||||
.. autoattribute:: pybricks.parameters.Stop.COAST_SMART
|
||||
:annotation:
|
||||
|
||||
.. autoattribute:: pybricks.parameters.Stop.BRAKE
|
||||
:annotation:
|
||||
|
||||
|
||||
@@ -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."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user