|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.ac.sbg.cosy.soccerbot.rcxdrive.RCXDrive
public class RCXDrive
Communications api for driving the RCX
Field Summary |
---|
Fields inherited from interface at.ac.sbg.cosy.soccerbot.rcxdrive.IRCXDrive |
---|
MAX_SPEED, MIN_SPEED, NORMAL_SPEED |
Method Summary | |
---|---|
void |
close()
Terminates the Tower and Communitation, readies the programm to exit. |
boolean |
getBumper()
Checks the bumper for an event. |
static IRCXDrive |
getInstance()
Returns the actual instance of an RCXDrive |
static void |
newInstance()
Get a new singelton instance of the RCXDrive. |
void |
sendCommand(byte command)
Sends a command to the brick |
void |
setPower(byte power)
Sets the power |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void newInstance()
public static IRCXDrive getInstance()
public void close()
IRCXDrive
close
in interface IRCXDrive
IRCXDrive.close()
public void setPower(byte power)
IRCXDrive
setPower
in interface IRCXDrive
power
- the power valueIRCXDrive.setPower(byte power)
public void sendCommand(byte command)
IRCXDrive
sendCommand
in interface IRCXDrive
command
- the command from CommandEvent
IRCXDrive.sendCommand(byte command)
public boolean getBumper()
IRCXDrive
getBumper
in interface IRCXDrive
IRCXDrive.getBumper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |