From 81fa637f0b9acb43131b2ced1c84ee807fed09dd Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 1 May 2020 15:08:21 +0200 Subject: [PATCH] doc/robotics: add note for using individual motors --- doc/api/robotics.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/api/robotics.rst b/doc/api/robotics.rst index 8dc4d6e..23a2470 100644 --- a/doc/api/robotics.rst +++ b/doc/api/robotics.rst @@ -74,6 +74,17 @@ ``wheel_diameter`` first, as done above. Be sure to test both turning and driving straight after you are done. + .. rubric:: Using the DriveBase motors individually + + Suppose you make a :class:`.DriveBase` object using two ``Motor`` objects called + ``left_motor`` and ``right_motor``. You **cannot** use these motors + individually while the DriveBase is **active**. + + The DriveBase is active if it is driving, but also when it is actively + holding the wheels in place after a :meth:`.straight` or + :meth:`.turn` command. + To deactivate the :class:`.DriveBase`, call :meth:`.stop`. + .. rubric:: Advanced Settings