com.scottpreston.javarobot.chapter4
Class DistanceStamp
java.lang.Object
com.scottpreston.javarobot.chapter2.Controller
com.scottpreston.javarobot.chapter4.DistanceStamp
- All Implemented Interfaces:
- JController
public class DistanceStamp
- 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_IR
public static final int CMD_IR
- See Also:
- Constant Field Values
CMD_SRF
public static final int CMD_SRF
- See Also:
- Constant Field Values
CMD_6500
public static final int CMD_6500
- See Also:
- Constant Field Values
DistanceStamp
public DistanceStamp(JSerialPort sPort)
throws java.lang.Exception
- Throws:
java.lang.Exception
ping
public int ping(int distSensor)
throws java.lang.Exception
- Throws:
java.lang.Exception
ping
public int ping()
throws java.lang.Exception
- Throws:
java.lang.Exception
getIR
public int getIR()
throws java.lang.Exception
- Throws:
java.lang.Exception
getSRF
public int getSRF()
throws java.lang.Exception
- Throws:
java.lang.Exception
get6500
public int get6500()
throws java.lang.Exception
- Throws:
java.lang.Exception
getDistSensor
public int getDistSensor()
setDistSensor
public void setDistSensor(int distSensor)
main
public static void main(java.lang.String[] args)