|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Gear | |
---|---|
ch.aplu.android.nxt | Package to use the Lego NXT robot in direct mode in Android applications. |
Uses of Gear in ch.aplu.android.nxt |
---|
Methods in ch.aplu.android.nxt that return Gear | |
---|---|
Gear |
Gear.backward()
Same as forward(), but move in reverse direction. |
Gear |
Gear.backward(int duration)
Same as forward(int duration), but move in reverse direction. |
Gear |
Gear.forward()
Starts the forward movement with preset speed. |
Gear |
Gear.forward(int duration)
Starts the forward movement for the given duration (in ms) with preset speed. |
Gear |
TurtleRobot.getGear()
Returns the gear used as component of the turtle. |
Gear |
Gear.left()
Starts turning left with left motor stopped and right motor at preset speed. |
Gear |
Gear.left(int duration)
Starts turning left for the given duration (in ms) with preset speed. |
Gear |
Gear.leftArc(double radius)
Starts turning to the left on an arc with given radius (in m). |
Gear |
Gear.leftArc(double radius,
int duration)
Starts turning to the left on an arc with given radius (in m) for the given duration (in ms) with preset speed. |
Gear |
Gear.moveTo(int count)
Same as moveTo(int count, boolean blocking) with blocking = true. |
Gear |
Gear.moveTo(int count,
boolean blocking)
Sets the rotation counter to zero and rotate both motors until the given count is reached. |
Gear |
Gear.right()
Same as left(), but turning in the opposite direction. |
Gear |
Gear.right(int duration)
Same as left(int duration), but turning in the opposite direction. |
Gear |
Gear.rightArc(double radius)
Same as leftArc(double radius), but turns in the right. |
Gear |
Gear.rightArc(double radius,
int duration)
Same as leftArc(double radius, int duration), but turns to the right. |
Gear |
Gear.setSpeed(int speed)
Sets the speed to the given value (arbitrary units). |
Gear |
Gear.setVelocity(double velocity)
Sets the velocity to the given value. |
Gear |
Gear.stop()
Stops the gear. |
Gear |
Gear.turnTo(int count)
Same as turnTo(int count, boolean blocking) with blocking = true. |
Gear |
Gear.turnTo(int count,
boolean blocking)
Sets the rotation counter to zero and turn with the motors running in opposite direction. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |