Trees | Indices | Help |
---|
|
Class that represents a EV3LargeRegulatedMotors or a NXTRegulatedMotor. Support for the wheel encoder that acts like a rotation counter with resolution of 720 counts per 360 degrees rotation.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Method Details |
Creates a motor instance at given motor port (MotorPort.A, MotorPort.B, MotorPort.C, MotorPort.D). The rotation count is set to zero. |
Starts the forward rotation with current speed. Method returns, while the rotation continues. (If motor is already rotating, returns immediately.) The rotation counter continues to be increased from its start value. |
Starts the backward rotation with current speed. Method returns, while the rotation continues. (If motor is already rotating, returns immediately.) The rotation counter continues to be decreased from its start value. |
Sets the speed to the given value (arbitrary units). The speed will be changed to the new value at the next movement call only.
|
Sets the rotation counter to zero and rotates the motor until the given count is reached. If count is negative, the motor turns backwards. If blocking = True (default), the method blocks until the count is reached and the motor stops. Keep in mind that the motor will overrun the given count, because its inertia. The amount depends of its speed. |
Same as rotateTo(count, blocking), but the rotation counter is not set to zero. The given count is the absolute value of the rotation counter to be reached. If the current count is higher than the count to reach, the motor turns backward. Keep in mind that the motor will overrun the given count, because its inertia. The amount depends of its speed. |
Same as rotateTo(int count), but the rotation counter is not set to zero. The given count is the relative increasement/decreasement from the current value of the rotation counter. For count < 0 the motor turns backward. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Jul 27 09:46:13 2017 | http://epydoc.sourceforge.net |