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.
This commit is contained in:
Laurens Valk
2020-01-23 17:58:24 +01:00
parent f5094cfaba
commit dd39a2e00f
2 changed files with 29 additions and 31 deletions
+7 -5
View File
@@ -14,13 +14,11 @@
.. automethod:: pybricks.robotics.DriveBase.turn
.. automethod:: pybricks.robotics.DriveBase.arc
.. automethod:: pybricks.robotics.DriveBase.set_drive_settings
.. rubric:: Manual drive control
.. automethod:: pybricks.robotics.DriveBase.start
.. automethod:: pybricks.robotics.DriveBase.drive
.. automethod:: pybricks.robotics.DriveBase.arc
.. automethod:: pybricks.robotics.DriveBase.stop
@@ -31,3 +29,7 @@
.. automethod:: pybricks.robotics.DriveBase.angle
.. automethod:: pybricks.robotics.DriveBase.reset
.. rubric:: Settings
.. automethod:: pybricks.robotics.DriveBase.set_drive_settings