|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRCXDrive
RCXDrive layer for communication with RCX
Field Summary | |
---|---|
static int |
MAX_SPEED
Maximum motor speed |
static int |
MIN_SPEED
Minimum motor speed |
static int |
NORMAL_SPEED
Normal motor speed |
Method Summary | |
---|---|
void |
close()
Terminates the Tower and Communitation, readies the programm to exit. |
boolean |
getBumper()
Checks the bumper for an event. |
void |
sendCommand(byte command)
Sends a command to the brick |
void |
setPower(byte power)
Sets the power |
Field Detail |
---|
static final int MIN_SPEED
static final int MAX_SPEED
static final int NORMAL_SPEED
Method Detail |
---|
void setPower(byte power)
power
- the power valuevoid sendCommand(byte command)
command
- the command from CommandEvent
boolean getBumper()
void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |