public interface RemotelyControllable
Modifier and Type | Field and Description |
---|---|
static String |
CLOSING_CONN_MSG
Message showed when the Bluetooth connection is closed
|
static float[] |
SCANNING_ANGLES
Array of angles at which range readings are to be taken by the
implementation of the
scan()
method. |
Modifier and Type | Method and Description |
---|---|
void |
end()
End the connection/program
|
void |
rotate(double angle)
Rotate through specific angle
|
void |
rotateLeft()
Rotate to the left
|
void |
rotateRight()
Rotate to the right
|
RangeReadings |
scan()
Scan the environment for object detection
|
void |
translate(double distance)
Translate a specific distance in a straight line
|
void |
translateBackward()
Translate backward
|
void |
translateForward()
Translate forward
|
static final String CLOSING_CONN_MSG
static final float[] SCANNING_ANGLES
scan()
method.void translate(double distance) throws IOException
A positive distance causes forward motion, a negative distance translates backward.
distance
- The distance to moveIOException
void translateForward() throws IOException
IOException
void translateBackward() throws IOException
IOException
void rotate(double angle) throws IOException
angle
- The wanted angle of rotation in degreesIOException
void rotateRight() throws IOException
IOException
void rotateLeft() throws IOException
IOException
RangeReadings scan() throws IOException
Scanning angles specified by SCANNING_ANGLES
.
RangeReadings
taken the
angles specified.IOException
void end() throws IOException
IOException
Licensed under the New BSD License
Thu Nov 15 18:47:59 CST 2012