com.scottpreston.javarobot.chapter7
Class Navigation
java.lang.Object
com.scottpreston.javarobot.chapter7.Navigation
- Direct Known Subclasses:
- Localization, OutdoorNavigation
public class Navigation
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Navigation
public Navigation(JSerialPort serialPort)
throws java.lang.Exception
- Throws:
java.lang.Exception
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)