G M P S

G

getHeading() - Method in class Ship
Returns the current heading of the robot in degrees.

M

main(String[]) - Static method in class Ship
A main method should you wish to test the class without writing your own code.
move() - Method in class Ship
Moves the robot forwards by appying the same power to both motors.
moveStraight() - Method in class Ship
Moves the robot forwards in a straight line.

P

pause(int) - Static method in class Ship
Lets the robot do nothing for the specified number of milli seconds.

S

setCourse(int) - Method in class Ship
Causes the robot to turn to point in the direction specified by course.
setSpeed(int) - Method in class Ship
Sets the speed of the robot.
Ship - class Ship.
A Ship class to simulate a basic ship using the lego robot.
Ship() - Constructor for class Ship
Constructs the Ship object effectively setting its initial heading to 0 degrees.

G M P S