com.scottpreston.javarobot.chapter7
Class NavStamp

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

public class NavStamp
extends Controller


Field Summary
static byte CMD_COMPASS
           
static byte CMD_DIAG
           
static byte CMD_GPS_LAT
           
static byte CMD_GPS_LON
           
static byte CMD_INIT
           
static byte CMD_IR
           
static byte CMD_IR_SONAR
           
static byte CMD_SONAR
           
static int PING_CYCLE_TIME
           
 
Constructor Summary
NavStamp(JSerialPort port)
           
 
Method Summary
 boolean diagnostic()
           
 int getCompass()
           
 GpsReading getGps()
           
 java.lang.String getGpsLatitude()
           
 java.lang.String getGpsLongitude()
           
 IRReadings getIR()
           
 SonarReadings getSonar()
           
 DistanceReadings getSonarIR()
           
static void main(java.lang.String[] args)
           
 
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 byte CMD_INIT

CMD_COMPASS

public static byte CMD_COMPASS

CMD_SONAR

public static byte CMD_SONAR

CMD_IR

public static byte CMD_IR

CMD_IR_SONAR

public static byte CMD_IR_SONAR

CMD_GPS_LAT

public static byte CMD_GPS_LAT

CMD_GPS_LON

public static byte CMD_GPS_LON

CMD_DIAG

public static byte CMD_DIAG

PING_CYCLE_TIME

public static int PING_CYCLE_TIME
Constructor Detail

NavStamp

public NavStamp(JSerialPort port)
         throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getCompass

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

getIR

public IRReadings getIR()
                 throws java.lang.Exception
Throws:
java.lang.Exception

getSonar

public SonarReadings getSonar()
                       throws java.lang.Exception
Throws:
java.lang.Exception

getSonarIR

public DistanceReadings getSonarIR()
                            throws java.lang.Exception
Throws:
java.lang.Exception

getGpsLongitude

public java.lang.String getGpsLongitude()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getGpsLatitude

public java.lang.String getGpsLatitude()
                                throws java.lang.Exception
Throws:
java.lang.Exception

getGps

public GpsReading getGps()
                  throws java.lang.Exception
Throws:
java.lang.Exception

diagnostic

public boolean diagnostic()
                   throws java.lang.Exception
Throws:
java.lang.Exception

main

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