lejos.robotics.navigation
Interface RotateMoveController

All Superinterfaces:
MoveController, MoveProvider
All Known Subinterfaces:
ArcRotateMoveController
All Known Implementing Classes:
CompassPilot, DifferentialPilot, OmniPilot, SegowayPilot

public interface RotateMoveController
extends MoveController


Field Summary
 
Fields inherited from interface lejos.robotics.navigation.MoveController
WHEEL_SIZE_NXT1, WHEEL_SIZE_NXT2, WHEEL_SIZE_RCX
 
Method Summary
 double getRotateMaxSpeed()
          returns the maximum value of the rotation speed;
 double getRotateSpeed()
          Returns the value of the rotation speed
 void rotate(double angle)
          Rotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter.
 void rotate(double angle, boolean immediateReturn)
          Rotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter.
 void setRotateSpeed(double speed)
          sets the rotation speed of the robot (the angular velocity of the rotate() methods)
 
Methods inherited from interface lejos.robotics.navigation.MoveController
backward, forward, getMaxTravelSpeed, getTravelSpeed, isMoving, setTravelSpeed, stop, travel, travel
 
Methods inherited from interface lejos.robotics.navigation.MoveProvider
addMoveListener, getMovement
 

Method Detail

rotate

void rotate(double angle)
Rotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter. Method returns when rotation is done.

Parameters:
angle - The angle to rotate in degrees. A positive value rotates left, a negative value right (clockwise).

rotate

void rotate(double angle,
            boolean immediateReturn)
Rotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter. Motion stops when rotation is done.

Parameters:
angle - The angle to rotate in degrees. A positive value rotates left, a negative value right (clockwise).
immediateReturn - If immediateReturn is true then the method returns immediately

setRotateSpeed

void setRotateSpeed(double speed)
sets the rotation speed of the robot (the angular velocity of the rotate() methods)

Parameters:
speed - in degrees per second

getRotateSpeed

double getRotateSpeed()
Returns the value of the rotation speed

Returns:
the rotate speed in degrees per second

getRotateMaxSpeed

double getRotateMaxSpeed()
returns the maximum value of the rotation speed;

Returns:
max rotation speed