|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjosx.vision.RCX
Remote execution of commands for vision control.
Field Summary |
Constructor Summary | |
RCX()
|
Method Summary | |
static void |
backward()
Move the robot backwards until stop or another command is executed. |
static void |
backward(int n)
Move the robot backwards n units. |
static void |
controlMotors(byte motors,
byte direction,
byte n)
Move the selected motors in the selected direction for n units |
static void |
forward()
Move the robot forwards until stop or another command is executed. |
static void |
forward(int n)
Move the robot forwards n units. |
static void |
playTone(short frequency,
byte duration)
Play a tone |
static void |
scanLeft()
Scan left until stop or another command is executed. |
static void |
scanLeft(int n)
Scan left n units. |
static void |
scanRight()
Scan right until stop or another command is executed. |
static void |
scanRight(int n)
Scan right n units. |
static void |
setPower(byte motors,
byte power)
Set the power of selected motors |
static void |
spinLeft()
Spin left until stop or another command is executed. |
static void |
spinLeft(int n)
Spin left n units. |
static void |
spinRight()
Spin right until stop or another command is executed. |
static void |
spinRight(int n)
Spin right n units. |
static void |
stop()
Stop all motors |
static void |
tiltDown(int n)
Tilt the camera down n units |
static void |
tiltUp(int n)
Tilt the camera up n units |
static void |
turnLeft()
Turn left until stop or another command is executed. |
static void |
turnLeft(int n)
Turn left n units. |
static void |
turnRight()
Turn right until stop or another command is executed. |
static void |
turnRight(int n)
Turn right n units. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait |
Constructor Detail |
public RCX()
Method Detail |
public static void forward()
public static void forward(int n)
n
- the number of units to movepublic static void backward()
public static void backward(int n)
n
- the number of units to movepublic static void spinLeft()
public static void spinLeft(int n)
n
- the number of units to movepublic static void turnLeft()
public static void turnLeft(int n)
n
- the number of units to movepublic static void scanLeft()
public static void scanLeft(int n)
n
- the number of units to movepublic static void spinRight()
public static void spinRight(int n)
n
- the number of units to movepublic static void turnRight()
public static void turnRight(int n)
n
- the number of units to movepublic static void scanRight()
public static void scanRight(int n)
n
- the number of units to movepublic static void stop()
public static void setPower(byte motors, byte power)
motors
- the selected motorspublic static void controlMotors(byte motors, byte direction, byte n)
motors
- the selected motorsdirection
- the direction to move in 0 - foreards, 1 backwardsn
- the number of units to movepublic static void playTone(short frequency, byte duration)
frequency
- the tone frequencyduration
- the duration of the tonepublic static void tiltUp(int n)
n
- the number of units to movepublic static void tiltDown(int n)
n
- the number of units to move
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |