From 34bc88dae34475a2b287c182e021da8c9f17a005 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Fri, 11 Jan 2019 09:03:18 +0100 Subject: [PATCH] doc: group motor methods by rubric --- pybricks/ev3devices.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pybricks/ev3devices.py b/pybricks/ev3devices.py index 43487d9..edd340b 100644 --- a/pybricks/ev3devices.py +++ b/pybricks/ev3devices.py @@ -19,7 +19,7 @@ class Motor(): Arguments: port (Port): Port to which the motor is connected direction (Direction): Positive speed direction. (*Default*: Direction.clockwise) - gears (list): List of gears linked to the motor. (*Default*: ``None``) + gears (list): List of gears linked to the motor. (*Default*: ``None``). For example: ``[12, 36]`` represents a gear train with a 12-tooth and a 36-tooth gear. See :ref:`ratio` for illustrated examples. @@ -31,6 +31,8 @@ class Motor(): The same holds for the documentation below: When it says "motor angle" or "motor speed", you can read it as "mechanism output angle" and "mechanism output speed", and so on, because the gear ratio is automatically accounted for. + The ``gears`` setting is only available for motors with rotation sensors. + :: # Initialize a motor (by default this means clockwise, without any gears).