mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
doc/robotics: add note for when to change settings
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
the default speed and acceleration for straight maneuvers and turns.
|
||||
Use the following attributes to adjust more advanced control setttings.
|
||||
|
||||
You can only change the settings while the robot is stopped. This is
|
||||
either before you begin driving or after you call :meth:`.stop`.
|
||||
|
||||
.. autoattribute:: pybricks.robotics.DriveBase.distance_control
|
||||
:annotation:
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class DriveBase:
|
||||
pass
|
||||
|
||||
def stop(self):
|
||||
"""Stop the robot by coasting the motors."""
|
||||
"""Stop the robot by letting the motors spin freely."""
|
||||
pass
|
||||
|
||||
def distance(self):
|
||||
@@ -87,6 +87,9 @@ class DriveBase:
|
||||
|
||||
If you give no arguments, this returns the current values as a tuple.
|
||||
|
||||
You can only change the settings while the robot is stopped. This is
|
||||
either before you begin driving or after you call :meth:`.stop`.
|
||||
|
||||
Arguments:
|
||||
straight_speed (:ref:`linspeed`): Speed of the robot during
|
||||
:meth:`.straight`.
|
||||
|
||||
Reference in New Issue
Block a user