com.scottpreston.javarobot.chapter7
Class Navigation

java.lang.Object
  extended by com.scottpreston.javarobot.chapter7.Navigation
Direct Known Subclasses:
Localization, OutdoorNavigation

public class Navigation
extends java.lang.Object


Field Summary
static int DEFAULT_SPEED
           
static int RAW_FWD
           
static int RAW_LFT
           
static int RAW_REV
           
static int RAW_RGT
           
static int REL_EAST
           
static int REL_NORTH
           
static int REL_SOUTH
           
static int REL_WEST
           
 int surface
           
static int SURFACE_CARPET
           
static int SURFACE_CEMENT
           
 
Constructor Summary
Navigation(JSerialPort serialPort)
           
 
Method Summary
 void changeHeading(int newHeading)
           
 JMotion getDrive()
           
 NavStamp getNavStamp()
           
static int getRealAngle(int theta)
           
 int getSpeed()
           
 int getSurfaceRate(double inches)
           
static void main(java.lang.String[] args)
           
 void move(DistanceVector dVect)
           
 void move(MotionVector vect)
           
 void move(MotionVector[] path)
           
 void moveRaw(int dir, int ms)
           
 void setSpeed(int s)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RAW_FWD

public static final int RAW_FWD
See Also:
Constant Field Values

RAW_REV

public static final int RAW_REV
See Also:
Constant Field Values

RAW_RGT

public static final int RAW_RGT
See Also:
Constant Field Values

RAW_LFT

public static final int RAW_LFT
See Also:
Constant Field Values

REL_NORTH

public static final int REL_NORTH
See Also:
Constant Field Values

REL_EAST

public static final int REL_EAST
See Also:
Constant Field Values

REL_SOUTH

public static final int REL_SOUTH
See Also:
Constant Field Values

REL_WEST

public static final int REL_WEST
See Also:
Constant Field Values

SURFACE_CEMENT

public static final int SURFACE_CEMENT
See Also:
Constant Field Values

SURFACE_CARPET

public static final int SURFACE_CARPET
See Also:
Constant Field Values

DEFAULT_SPEED

public static final int DEFAULT_SPEED
See Also:
Constant Field Values

surface

public int surface
Constructor Detail

Navigation

public Navigation(JSerialPort serialPort)
           throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

changeHeading

public void changeHeading(int newHeading)
                   throws java.lang.Exception
Throws:
java.lang.Exception

getRealAngle

public static int getRealAngle(int theta)

setSpeed

public void setSpeed(int s)
              throws java.lang.Exception
Throws:
java.lang.Exception

getSpeed

public int getSpeed()

move

public void move(DistanceVector dVect)
          throws java.lang.Exception
Throws:
java.lang.Exception

move

public void move(MotionVector vect)
          throws java.lang.Exception
Throws:
java.lang.Exception

moveRaw

public void moveRaw(int dir,
                    int ms)
             throws java.lang.Exception
Throws:
java.lang.Exception

getSurfaceRate

public int getSurfaceRate(double inches)

stop

public void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception

move

public void move(MotionVector[] path)
          throws java.lang.Exception
Throws:
java.lang.Exception

getDrive

public JMotion getDrive()

getNavStamp

public NavStamp getNavStamp()

main

public static void main(java.lang.String[] args)