|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.gps.AbstractGPSDevice
com.partnersoft.gps.nmea.NmeaGps
public class NmeaGps
Turns NMEA messages from a NmeaParser into GPS stuff: latitude, longitude, pdop, etc.
| Field Summary |
|---|
| Fields inherited from class com.partnersoft.gps.AbstractGPSDevice |
|---|
caster |
| Constructor Summary | |
|---|---|
NmeaGps()
|
|
| Method Summary | |
|---|---|
protected void |
applyAllSettings()
This is called by the configutron to apply all the settings that can be applied without diconnecting and reconnecting the serial port. |
protected void |
clearReading()
|
void |
close()
Close the GPS. |
javax.swing.JPanel |
getConfigutron()
Returns a property page for configuring the GPS. |
Constellation |
getConstellation()
|
java.lang.String |
getDeviceLabel()
|
java.lang.String |
getDeviceType()
|
GPSState |
getGpsState()
Returns null if the GPS is not open. |
double |
getHDOP()
|
GPSReading |
getLastReading()
|
double |
getLatitude()
|
double |
getLongitude()
|
int |
getMinimumSatellites()
|
double |
getPDOP()
|
Postprocessing |
getPostprocessing()
|
int |
getSatelliteCount()
|
int |
getStatusCode()
|
java.lang.String |
getStatusMessage()
|
protected void |
handleGga(GGAData gga)
|
protected void |
handleGll(GLLData gll)
|
protected void |
handleGsa(GSAData gsa)
|
protected void |
handleGsv(GSVData gsv)
|
protected void |
handleRmc(RMCData rmc)
|
boolean |
isOpen()
|
void |
open()
Open the GPS using the current settings. |
void |
setMinimumSatellites(int min)
|
protected void |
setReading(double longitude,
double latitude)
This uses the last official bearing. |
protected void |
setReading(double longitude,
double latitude,
double bearing)
This sets the "official" bearing. |
SurveyedLocation |
surveyLocation()
The NMEA GPS does not take advantage of surveyLocation() to do any special processing, like point averaging. |
protected void |
updateStatusMessage()
|
| Methods inherited from class com.partnersoft.gps.AbstractGPSDevice |
|---|
addGPSListener, removeAllListeners, removeGPSListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NmeaGps()
| Method Detail |
|---|
protected void applyAllSettings()
throws java.io.IOException
java.io.IOExceptionprotected void clearReading()
protected void handleGga(GGAData gga)
protected void handleGll(GLLData gll)
protected void handleGsa(GSAData gsa)
protected void handleGsv(GSVData gsv)
protected void handleRmc(RMCData rmc)
protected void setReading(double longitude,
double latitude)
longitude - latitude -
protected void setReading(double longitude,
double latitude,
double bearing)
longitude - latitude - bearing - in degrees north.protected void updateStatusMessage()
public int getMinimumSatellites()
public void setMinimumSatellites(int min)
public java.lang.String getDeviceType()
public java.lang.String getDeviceLabel()
public void open()
throws java.io.IOException
GPSDevice
java.io.IOExceptionpublic boolean isOpen()
public void close()
GPSDevice
public Constellation getConstellation()
public double getHDOP()
public double getLatitude()
public GPSReading getLastReading()
public SurveyedLocation surveyLocation()
public double getLongitude()
public double getPDOP()
public int getSatelliteCount()
public int getStatusCode()
public java.lang.String getStatusMessage()
public javax.swing.JPanel getConfigutron()
GPSDevice
public GPSState getGpsState()
GPSDevice
public Postprocessing getPostprocessing()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||