lejos.robotics.proposal
Interface BasicPilot

All Superinterfaces:
MovementProvider
All Known Subinterfaces:
ArcPilot, ArcRotatePilot, RotatePilot
All Known Implementing Classes:
CarefulDifferentialPilot, DifferentialPilot, SteeringPilot

public interface BasicPilot
extends MovementProvider


Method Summary
 void backward()
          Starts the NXT robot moving backwards.
 void forward()
          Starts the NXT robot moving forward.
 float getMoveMaxSpeed()
           
 float getMovementIncrement()
           
 float getMoveSpeed()
           
 boolean isMoving()
          true if the robot is moving
 void setMoveSpeed(float speed)
           
 Movement stop()
          Halts the NXT robot
 Movement travel(float distance)
          Moves the NXT robot a specific distance.
 Movement travel(float distance, boolean immediateReturn)
          Moves the NXT robot a specific distance.
 
Methods inherited from interface lejos.robotics.MovementProvider
addMoveListener, getMovement
 

Method Detail

forward

void forward()
Starts the NXT robot moving forward.


backward

void backward()
Starts the NXT robot moving backwards.


stop

Movement stop()
Halts the NXT robot

Returns:
The movement it just achieved?

isMoving

boolean isMoving()
true if the robot is moving

Returns:
true if the robot is moving under power.

travel

Movement travel(float distance)
Moves the NXT robot a specific distance. A positive value moves it forward and a negative value moves it backward. Method returns when movement is done.

Parameters:
distance - The positive or negative distance to move the robot.

travel

Movement travel(float distance,
                boolean immediateReturn)
Moves the NXT robot a specific distance. A positive value moves it forward and a negative value moves it backward.

Parameters:
distance - The positive or negative distance to move the robot, in wheel diameter units.
immediateReturn - If immediateReturn is true then the method returns immediately.

getMovementIncrement

float getMovementIncrement()

setMoveSpeed

void setMoveSpeed(float speed)

getMoveSpeed

float getMoveSpeed()

getMoveMaxSpeed

float getMoveMaxSpeed()