|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MoveController
Field Summary | |
---|---|
static double |
WHEEL_SIZE_NXT1
NXT 1.0 kit wheel diameter, in centimeters |
static double |
WHEEL_SIZE_NXT2
NXT 2.0 kit wheel diameter, in centimeters |
static double |
WHEEL_SIZE_RCX
White RCX "motorcycle" wheel diameter, in centimeters |
Method Summary | |
---|---|
void |
backward()
Starts the NXT robot moving backwards. |
void |
forward()
Starts the NXT robot moving forward. |
double |
getMaxTravelSpeed()
Returns the maximum speed at which this robot is capable of traveling forward and backward. |
double |
getTravelSpeed()
Returns the speed at which the robot will travel forward and backward (and to some extent arcs, although actual arc speed is slightly less). |
boolean |
isMoving()
true if the robot is moving |
void |
setTravelSpeed(double speed)
Sets the speed at which the robot will travel forward and backward (and to some extent arcs, although actual arc speed is slightly less). |
void |
stop()
Halts the NXT robot |
void |
travel(double distance)
Moves the NXT robot a specific distance. |
void |
travel(double distance,
boolean immediateReturn)
Moves the NXT robot a specific distance. |
Methods inherited from interface lejos.robotics.navigation.MoveProvider |
---|
addMoveListener, getMovement |
Field Detail |
---|
static final double WHEEL_SIZE_NXT1
static final double WHEEL_SIZE_NXT2
static final double WHEEL_SIZE_RCX
Method Detail |
---|
void forward()
void backward()
void stop()
boolean isMoving()
void travel(double distance)
distance
- The positive or negative distance to move the robot.void travel(double distance, boolean immediateReturn)
distance
- The positive or negative distance to move the robot, in wheel diameter units.immediateReturn
- If immediateReturn is true then the method returns immediately.void setTravelSpeed(double speed)
speed
- In chosen units per second (e.g. cm/sec)double getTravelSpeed()
double getMaxTravelSpeed()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |