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