at.ac.sbg.cosy.soccerbot.rcxdrive
Interface IRCXDrive

All Known Implementing Classes:
RCXDrive

public interface IRCXDrive

RCXDrive layer for communication with RCX

Author:
Georg Klima

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

MIN_SPEED

static final int MIN_SPEED
Minimum motor speed

See Also:
Constant Field Values

MAX_SPEED

static final int MAX_SPEED
Maximum motor speed

See Also:
Constant Field Values

NORMAL_SPEED

static final int NORMAL_SPEED
Normal motor speed

See Also:
Constant Field Values
Method Detail

setPower

void setPower(byte power)
Sets the power

Parameters:
power - the power value

sendCommand

void sendCommand(byte command)
Sends a command to the brick

Parameters:
command - the command from CommandEvent

getBumper

boolean getBumper()
Checks the bumper for an event.

Returns:
returns true if bumped

close

void close()
Terminates the Tower and Communitation, readies the programm to exit.