mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
doc/ev3devices: On EV3 docs, drop DC methods.
These can still be viewed on the full Motor class description. But on EV3, these functions are not so relevant as all motors have encoders. Then we can also remove the encoded/encoderless rubric, further removing clutter.
This commit is contained in:
+1
-15
@@ -13,26 +13,12 @@ Motor
|
||||
|
||||
Example::
|
||||
|
||||
# Initialize a motor (by default this means is, without any gears).
|
||||
# Initialize a motor.
|
||||
example_motor = Motor(Port.A)
|
||||
|
||||
# Initialize a motor with positive speed as counterclockwise
|
||||
right_motor = Motor(Port.B, Direction.COUNTERCLOCKWISE)
|
||||
|
||||
# Initialize a motor with a gear train
|
||||
robot_arm = Motor(Port.C, Direction.CLOCKWISE, [12, 36])
|
||||
|
||||
.. rubric:: Methods for motors without rotation sensors
|
||||
|
||||
.. automethod:: pybricks.ev3devices.Motor.dc
|
||||
|
||||
Example::
|
||||
|
||||
# Set the motor duty cycle to 75%.
|
||||
example_motor.duty(75)
|
||||
|
||||
.. rubric:: Methods for motors with rotation sensors
|
||||
|
||||
.. automethod:: pybricks.ev3devices.Motor.angle
|
||||
|
||||
.. automethod:: pybricks.ev3devices.Motor.reset_angle
|
||||
|
||||
Reference in New Issue
Block a user