public class NmeaGps extends AbstractGPSDevice
caster| Constructor and Description |
|---|
NmeaGps() |
| Modifier and Type | Method and Description |
|---|---|
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() |
addGPSListener, removeAllListeners, removeGPSListenerprotected 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
GPSDevicejava.io.IOExceptionpublic boolean isOpen()
public void close()
GPSDevicepublic 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()
GPSDevicepublic GPSState getGpsState()
GPSDevicepublic Postprocessing getPostprocessing()