mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-14 10:35:53 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user