com.scottpreston.javarobot.chapter4
Class CompassStamp

java.lang.Object
  extended by com.scottpreston.javarobot.chapter2.Controller
      extended by com.scottpreston.javarobot.chapter4.CompassStamp
All Implemented Interfaces:
JController

public class CompassStamp
extends Controller


Field Summary
static int CMD_DEVANTECH
           
static int CMD_DISMORE
           
static int CMD_INIT
           
static int CMD_VECTOR
           
 
Constructor Summary
CompassStamp(JSerialPort sPort)
           
 
Method Summary
 int getCompass()
           
 int getDevantech()
           
 int getDismore()
           
 int getHeading()
           
 int getHeading(int compass)
           
 int getVector()
           
static void main(java.lang.String[] args)
           
 void setCompass(int compass)
           
 
Methods inherited from class com.scottpreston.javarobot.chapter2.Controller
close, execute, execute2
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD_INIT

public static final int CMD_INIT
See Also:
Constant Field Values

CMD_DISMORE

public static final int CMD_DISMORE
See Also:
Constant Field Values

CMD_DEVANTECH

public static final int CMD_DEVANTECH
See Also:
Constant Field Values

CMD_VECTOR

public static final int CMD_VECTOR
See Also:
Constant Field Values
Constructor Detail

CompassStamp

public CompassStamp(JSerialPort sPort)
             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getDismore

public int getDismore()
               throws java.lang.Exception
Throws:
java.lang.Exception

getDevantech

public int getDevantech()
                 throws java.lang.Exception
Throws:
java.lang.Exception

getVector

public int getVector()
              throws java.lang.Exception
Throws:
java.lang.Exception

getHeading

public int getHeading(int compass)
               throws java.lang.Exception
Throws:
java.lang.Exception

getHeading

public int getHeading()
               throws java.lang.Exception
Throws:
java.lang.Exception

getCompass

public int getCompass()

setCompass

public void setCompass(int compass)

main

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