public class GGASentence extends NMEASentence
Modifier and Type | Field and Description |
---|---|
private float |
altitude |
private java.lang.String |
altitudeUnits |
private int |
dateTimeOfFix |
private float |
geoidalSeparation |
private java.lang.String |
geoidalSeparationUnit |
private float |
hdop |
static java.lang.String |
HEADER |
private double |
latitude |
private char |
latitudeDirection |
private double |
longitude |
private char |
longitudeDirection |
private java.lang.String |
nmeaHeader |
private int |
quality |
private int |
satellitesTracked |
LATITUDE, LONGITUDE
Constructor and Description |
---|
GGASentence() |
Modifier and Type | Method and Description |
---|---|
protected double |
degreesMinToDegreesDbl(java.lang.String DD_MM,
int CoordinateType)
Any GPS Receiver gives Lat/Lon data in the following way:
http://www.gpsinformation.org/dale/nmea.htm
http://www.teletype.com/pages/support/Documentation/RMC_log_info.htm
4807.038,N Latitude 48 deg 07.038' N
01131.000,E Longitude 11 deg 31.000' E
This data is necessary to convert to Decimal Degrees.
|
float |
getAltitude()
Get Altitude
|
int |
getFixQuality()
Get GPS Quality Data
|
float |
getHDOP()
Get Horizontal Dilution of Precision (HDOP)
|
java.lang.String |
getHeader()
Returns the NMEA header for this sentence.
|
double |
getLatitude()
Get Latitude
|
char |
getLatitudeDirection()
Get Latitude Direction
|
double |
getLongitude()
Get Longitude
|
char |
getLongitudeDirection()
Get Longitude Direction
|
int |
getSatellitesTracked()
Returns the number of satellites being tracked to
determine the coordinates.
|
int |
getTime()
Returns the last time stamp retrieved from a satellite
|
void |
parse(java.lang.String sentence)
Method used to parse a GGA Sentence
|
degreesMinToDegrees, isNumeric
private double latitude
private double longitude
private java.lang.String nmeaHeader
private int dateTimeOfFix
private char latitudeDirection
private char longitudeDirection
private int quality
private int satellitesTracked
private float hdop
private float altitude
private java.lang.String altitudeUnits
private float geoidalSeparation
private java.lang.String geoidalSeparationUnit
public static final java.lang.String HEADER
protected double degreesMinToDegreesDbl(java.lang.String DD_MM, int CoordinateType)
DD_MM
- CoordinateType
- public java.lang.String getHeader()
getHeader
in class NMEASentence
public double getLatitude()
public char getLatitudeDirection()
public double getLongitude()
public char getLongitudeDirection()
public float getAltitude()
public int getTime()
public int getSatellitesTracked()
public int getFixQuality()
public float getHDOP()
public void parse(java.lang.String sentence)
parse
in class NMEASentence