lejos.robotics.proposal
Interface RotatePilot

All Superinterfaces:
BasicPilot, MovementProvider
All Known Subinterfaces:
ArcRotatePilot
All Known Implementing Classes:
CarefulDifferentialPilot, DifferentialPilot

public interface RotatePilot
extends BasicPilot


Method Summary
 float getAngleIncrement()
           
 float getTurnMaxSpeed()
           
 float getTurnSpeed()
           
 Movement rotate(float angle)
          Rotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter.
 Movement rotate(float angle, boolean immediateReturn)
          Rotates the NXT robot the specified number of degrees; direction determined by the sign of the parameter.
 void setTurnSpeed(float speed)
           
 
Methods inherited from interface lejos.robotics.proposal.BasicPilot
backward, forward, getMoveMaxSpeed, getMovementIncrement, getMoveSpeed, isMoving, setMoveSpeed, stop, travel, travel
 
Methods inherited from interface lejos.robotics.MovementProvider
addMoveListener, getMovement
 

Method Detail

rotate

Movement rotate(float 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

Movement rotate(float 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

getAngleIncrement

float getAngleIncrement()

setTurnSpeed

void setTurnSpeed(float speed)

getTurnSpeed

float getTurnSpeed()

getTurnMaxSpeed

float getTurnMaxSpeed()