lejos.robotics.proposal
Interface RotatePilot
- All Superinterfaces:
- BasicPilot, MovementProvider
- All Known Subinterfaces:
- ArcRotatePilot
- All Known Implementing Classes:
- CarefulDifferentialPilot, DifferentialPilot
public interface RotatePilot
- extends BasicPilot
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()