com.scottpreston.javarobot.chapter4
Class DistanceStamp

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

public class DistanceStamp
extends Controller


Field Summary
static int CMD_6500
           
static int CMD_INIT
           
static int CMD_IR
           
static int CMD_SRF
           
 
Constructor Summary
DistanceStamp(JSerialPort sPort)
           
 
Method Summary
 int get6500()
           
 int getDistSensor()
           
 int getIR()
           
 int getSRF()
           
static void main(java.lang.String[] args)
           
 int ping()
           
 int ping(int distSensor)
           
 void setDistSensor(int distSensor)
           
 
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_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
Constructor Detail

DistanceStamp

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

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)