Files
pybricks-api/doc/api/robotics.rst
T
Laurens Valk dd39a2e00f api/robotics: update DriveBase API
Make arc a non-blocking function similar to drive. This allows users to drive the robot along an arc until a sensor (e.g. color) is triggered, instead of relying on the rotation sensors only.

This also lets us simplify the language of some other method docstrings.
2020-01-23 17:58:24 +01:00

36 lines
866 B
ReStructuredText

:mod:`robotics <pybricks.robotics>` -- Robotics module
======================================================
.. automodule:: pybricks.robotics
:no-members:
.. autoclass:: pybricks.robotics.DriveBase
:no-members:
.. rubric:: Automatic drive control
.. automethod:: pybricks.robotics.DriveBase.straight
.. automethod:: pybricks.robotics.DriveBase.turn
.. rubric:: Manual drive control
.. automethod:: pybricks.robotics.DriveBase.drive
.. automethod:: pybricks.robotics.DriveBase.arc
.. automethod:: pybricks.robotics.DriveBase.stop
.. rubric:: Measuring
.. automethod:: pybricks.robotics.DriveBase.distance
.. automethod:: pybricks.robotics.DriveBase.angle
.. automethod:: pybricks.robotics.DriveBase.reset
.. rubric:: Settings
.. automethod:: pybricks.robotics.DriveBase.set_drive_settings