com.partnersoft.gps
Class LaserRangefinderDaemon

java.lang.Object
  extended by com.partnersoft.gps.LaserRangefinderDaemon

public class LaserRangefinderDaemon
extends java.lang.Object

Simple, quick and dirty. Not configurable through the gui, not part of the GPS stuff. Sample output from the TruPulse 200B:

 QHV,3.80,M,0.00,D,6.60,D,3.80,M*67
 $PLTIT,HV,3.10,M,0.00,D,6.10,D,3.20,M*63
 
This shows a single reading, a single press of the fire button, taken after startup. The QHV line is the startup message. The readouts on the device are as follows: SD (slope distance): 3.2m VD (vertical distance): 0.3m HD (horizontal distance): 3.1m INC (inclination): 6.1 degrees 0: $PLTIT 1: HV 2: 3.10 3: M 4: 0.00 5: D 6: 6.10 7: D 8: 3.20 9: M Bah, make it a singleton for now.

Author:
Russell Cagle Copyright 2006 Partner Software, Inc.

Method Summary
 void addLaserRangefinderListener(LaserRangefinderListener listener)
           
 boolean isRunning()
           
 void removeLaserRangefinderListener(LaserRangefinderListener listener)
           
static LaserRangefinderDaemon singleton()
           
 void startDaemon(java.lang.String serialPort, int baudRate)
           
 void stopDaemon()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

singleton

public static LaserRangefinderDaemon singleton()

addLaserRangefinderListener

public void addLaserRangefinderListener(LaserRangefinderListener listener)

isRunning

public boolean isRunning()

removeLaserRangefinderListener

public void removeLaserRangefinderListener(LaserRangefinderListener listener)

startDaemon

public void startDaemon(java.lang.String serialPort,
                        int baudRate)
                 throws java.io.IOException,
                        javax.comm.NoSuchPortException,
                        javax.comm.PortInUseException,
                        javax.comm.UnsupportedCommOperationException
Throws:
java.io.IOException
javax.comm.NoSuchPortException
javax.comm.PortInUseException
javax.comm.UnsupportedCommOperationException

stopDaemon

public void stopDaemon()