mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
api: fix relative links due to package
This commit is contained in:
+5
-5
@@ -111,7 +111,7 @@ class Motor():
|
||||
|
||||
Arguments:
|
||||
stop_type (Stop): Whether to coast, brake, or hold (*Default*:
|
||||
:class:`Stop.COAST <parameters.Stop>`).
|
||||
:class:`Stop.COAST <.parameters.Stop>`).
|
||||
"""
|
||||
pass
|
||||
|
||||
@@ -144,7 +144,7 @@ class Motor():
|
||||
time (:ref:`time`): Duration of the maneuver.
|
||||
stop_type (Stop): Whether to coast, brake, or hold after coming to
|
||||
a standstill (*Default*:
|
||||
:class:`Stop.COAST <parameters.Stop>`).
|
||||
:class:`Stop.COAST <.parameters.Stop>`).
|
||||
wait (bool): Wait for the maneuver to complete before continuing
|
||||
with the rest of the program (*Default*: ``True``).
|
||||
This means that your program waits for the
|
||||
@@ -169,7 +169,7 @@ class Motor():
|
||||
rotate.
|
||||
stop_type (Stop): Whether to coast, brake, or hold after coming to
|
||||
a standstill (*Default*:
|
||||
:class:`Stop.COAST <parameters.Stop>`).
|
||||
:class:`Stop.COAST <.parameters.Stop>`).
|
||||
wait (bool): Wait for the maneuver to complete before continuing
|
||||
with the rest of the program (*Default*: ``True``).
|
||||
This means that your program waits until the motor has
|
||||
@@ -201,7 +201,7 @@ class Motor():
|
||||
angle.
|
||||
stop_type (Stop): Whether to coast, brake, or hold after coming to
|
||||
a standstill (*Default*:
|
||||
:class:`Stop.COAST <parameters.Stop>`).
|
||||
:class:`Stop.COAST <.parameters.Stop>`).
|
||||
wait (bool): Wait for the maneuver to complete before continuing
|
||||
with the rest of the program (*Default*: ``True``).
|
||||
This means that your program waits until the motor
|
||||
@@ -224,7 +224,7 @@ class Motor():
|
||||
speed (:ref:`speed`): Speed of the motor.
|
||||
stop_type (Stop): Whether to coast, brake, or hold after coming to
|
||||
a standstill (*Default*:
|
||||
:class:`Stop.COAST <parameters.Stop>`).
|
||||
:class:`Stop.COAST <.parameters.Stop>`).
|
||||
duty_limit (:ref:`percentage`): Relative torque limit. This limit
|
||||
works just like
|
||||
:meth:`.set_dc_settings`, but in
|
||||
|
||||
@@ -70,7 +70,7 @@ class ColorSensor():
|
||||
:returns:
|
||||
``Color.BLACK``, ``Color.BLUE``, ``Color.GREEN``, ``Color.YELLOW``,
|
||||
``Color.RED``, ``Color.WHITE``, ``Color.BROWN`` or ``None``.
|
||||
:rtype: :class:`Color <parameters.Color>`, or ``None`` if no color is
|
||||
:rtype: :class:`Color <.parameters.Color>`, or ``None`` if no color is
|
||||
detected.
|
||||
|
||||
"""
|
||||
@@ -157,7 +157,7 @@ class InfraredSensor():
|
||||
channel (int): Channel number of the remote.
|
||||
|
||||
:returns: List of pressed buttons on the remote on selected channel.
|
||||
:rtype: List of :class:`Button <parameters.Button>`
|
||||
:rtype: List of :class:`Button <.parameters.Button>`
|
||||
|
||||
"""
|
||||
pass
|
||||
|
||||
@@ -35,7 +35,7 @@ class ColorDistanceSensor():
|
||||
:returns:
|
||||
``Color.BLACK``, ``Color.BLUE``, ``Color.GREEN``, ``Color.YELLOW``,
|
||||
``Color.RED``, ``Color.WHITE``, or ``None``.
|
||||
:rtype: :class:`Color <parameters.Color>`, or ``None`` if no color is
|
||||
:rtype: :class:`Color <.parameters.Color>`, or ``None`` if no color is
|
||||
detected.
|
||||
"""
|
||||
pass
|
||||
|
||||
@@ -48,6 +48,6 @@ class DriveBase():
|
||||
|
||||
Arguments:
|
||||
stop_type (Stop): Whether to coast, brake, or hold (*Default*:
|
||||
:class:`Stop.COAST <parameters.Stop>`).
|
||||
:class:`Stop.COAST <.parameters.Stop>`).
|
||||
"""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user