|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Motor | |
---|---|
ch.aplu.android.nxt | Package to use the Lego NXT robot in direct mode in Android applications. |
Uses of Motor in ch.aplu.android.nxt |
---|
Methods in ch.aplu.android.nxt that return Motor | |
---|---|
Motor |
Motor.backward()
Starts the backward rotation with preset speed. |
Motor |
Motor.continueTo(int count)
Same as rotateTo(int count), but the rotation counter is not set to zero. |
Motor |
Motor.continueTo(int count,
boolean blocking)
Same as rotateTo(int count, boolean blocking), but the rotation counter is not set to zero. |
Motor |
Motor.forward()
Starts the forward rotation with preset speed. |
Motor |
Gear.getMotLeft()
Returns left motor of the gear. |
Motor |
Gear.getMotRight()
Returns right motor of the gear. |
Motor |
Motor.rotateTo(int count)
Sets the rotation counter to zero and rotates the motor until the given count is reached. |
Motor |
Motor.rotateTo(int count,
boolean blocking)
Sets the rotation counter to zero and rotates the motor until the given count is reached. |
Motor |
Motor.setSpeed(int speed)
Sets the speed to the given value (arbitrary units). |
Motor |
Motor.setVelocity(double velocity)
Sets the velocity to the given value. |
Motor |
Motor.stop()
Stops the motor. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |