From 4f25a0c46759dfc837be3f62fcb35d33d5b33bef Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Mon, 11 Nov 2019 13:25:41 +0100 Subject: [PATCH] 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. --- doc/api/ev3devices.rst | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/doc/api/ev3devices.rst b/doc/api/ev3devices.rst index 9226dd4..2543997 100644 --- a/doc/api/ev3devices.rst +++ b/doc/api/ev3devices.rst @@ -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