com.scottpreston.javarobot.chapter4
Class CompassStamp
java.lang.Object
com.scottpreston.javarobot.chapter2.Controller
com.scottpreston.javarobot.chapter4.CompassStamp
- All Implemented Interfaces:
- JController
public class CompassStamp
- extends Controller
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
CompassStamp
public CompassStamp(JSerialPort sPort)
throws java.lang.Exception
- Throws:
java.lang.Exception
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)