Trees | Indices | Help |
---|
|
Class that represents the combination of two motors on an axis to perform a car-like movement.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Method Details |
Sets the speed to the given value (arbitrary units). The speed will be changed to the new value at the next movement call only.
|
Starts the forward movement with current speed for the given duration (in ms). For duration = -1 (default), the method returns, while the movement continues. Otherwise the method returns at the end of the given duration, but the movement continues for 200 ms. Then it stops unless another movement method call (forward, backward, left, right, leftArc, rightArc) is invoked within that time. In a consequence calling several movement methods one after the other will result a seamless movement without intermediate stops. (If motor is already rotating with same speed, returns immediately.) |
Stops the gear. (If motor is already stopped, returns immediately.) |
Sets the rotation counter of both motors to zero and rotate the motors until the given count is reached. If count is negative, the motors turn backwards. If blocking = True (default), the method returns blocks, until the count is reached; otherwise it returns immediately |
Starts turning left with left motor rotating forward and right motor rotating backward at current speed. For duration = -1 (default), the method returns, while the movement continues. Otherwise the method returns at the end of the given duration, but the movement continues for 200 ms. Then it stops unless another movement method call (forward, backward, left, right, leftArc, rightArc) is invoked within that time. In a consequence calling several movement methods one after the other will result a seamless movement without intermediate stops. (If gear is already turning left, returns immediately.) |
Starts turning to the left on an arc with given radius (in arbitrary units). If the radius is negative, turns left backwards. For duration = -1 (default), the method returns, while the movement continues. Otherwise the method returns at the end of the given duration, but the movement continues for 200 ms. Then it stops unless another movement method call (forward, backward, left, right, leftArc, rightArc) is invoked within that time. In a consequence calling several movement methods one after the other will result a seamless movement without intermediate stops. (If gear is already turning on a left arc with same radius, returns immediately.) |
Starts turning to the right on an arc with given radius (in arbitrary units). If the radius is negative, turns left backwards. For duration = -1 (default), the method returns, while the movement continues. Otherwise the method returns at the end of the given duration, but the movement continues for 200 ms. Then it stops unless another movement method call (forward, backward, left, right, leftArc, rightArc) is invoked within that time. In a consequence calling several movement methods one after the other will result a seamless movement without intermediate stops. (If gear is already turning on a left arc with same radius, returns immediately.) |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Jul 27 09:46:13 2017 | http://epydoc.sourceforge.net |