mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
pybricks._common.Motor: Enable on EV3 and NXT.
Use a shared include and only index the pupdevices Motor.
This commit is contained in:
@@ -10,17 +10,18 @@
|
||||
:maxdepth: 1
|
||||
:hidden:
|
||||
|
||||
motor
|
||||
touchsensor
|
||||
colorsensor
|
||||
infraredsensor
|
||||
ultrasonicsensor
|
||||
gyrosensor
|
||||
|
||||
.. pybricks-classlink:: Motor ../pupdevices/motor
|
||||
.. pybricks-classlink:: Motor ../ev3devices/motor
|
||||
|
||||
.. figure:: ../../main/cad/output/ev3device-motors.png
|
||||
:width: 100 %
|
||||
:target: ../pupdevices/motor.html
|
||||
:target: ../ev3devices/motor.html
|
||||
|
||||
.. pybricks-classlink:: TouchSensor
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
.. pybricks-requirements::
|
||||
|
||||
Motors with rotation sensors
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
.. _fig_ev3motors:
|
||||
|
||||
.. figure:: ../../main/diagrams/ev3motors.png
|
||||
:width: 100 %
|
||||
:alt: ev3motors
|
||||
|
||||
EV3 and NXT motors with rotation sensors. The arrows indicate the default
|
||||
positive direction.
|
||||
|
||||
.. blockimg:: pybricks_variables_set_motor
|
||||
|
||||
.. autoclass:: pybricks.ev3devices.Motor
|
||||
:no-members:
|
||||
:no-index:
|
||||
|
||||
.. include:: ../common/motor_members.rst.txt
|
||||
Reference in New Issue
Block a user