public interface RotateMoveController extends MoveController
WHEEL_SIZE_EV3, WHEEL_SIZE_NXT1, WHEEL_SIZE_NXT2, WHEEL_SIZE_RCX
Modifier and Type | Method and Description |
---|---|
double |
getAngularAcceleration()
Returns the acceleration at which the robot accelerates at the start of a move and decelerates at the end of a move.
|
double |
getAngularSpeed()
Returns the value of the rotation speed
|
double |
getMaxAngularSpeed()
returns the maximum 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 |
rotateLeft() |
void |
rotateRight() |
void |
setAngularAcceleration(double acceleration)
Sets the acceleration at which the robot will accelerate at the start of a move and decelerate at the end of a move.
|
void |
setAngularSpeed(double speed)
sets the rotation speed of the robot (the angular velocity of the rotate()
methods)
|
backward, forward, getLinearAcceleration, getLinearSpeed, getMaxLinearSpeed, isMoving, setLinearAcceleration, setLinearSpeed, stop, travel, travel
addMoveListener, getMovement
void rotate(double angle)
angle
- The angle to rotate in degrees. A positive value rotates left, a negative value right (clockwise).void rotate(double angle, boolean immediateReturn)
angle
- The angle to rotate in degrees. A positive value rotates left, a negative value right (clockwise).immediateReturn
- If true, method returns immediately, otherwise blocks until rotation is complete.void setAngularSpeed(double speed)
speed
- in degrees per seconddouble getAngularSpeed()
double getMaxAngularSpeed()
void setAngularAcceleration(double acceleration)
If acceleration is set during a move it will not be in used for the current move, it will be in effect with the next move.
acceleration
- in chosen units/second^2double getAngularAcceleration()
void rotateRight()
void rotateLeft()