public class RMCSentence extends NMEASentence
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
ACTIVE |
private float |
compassDegrees |
private int |
dateOfFix |
private int |
DATETIMELENGTH |
private int |
dateTimeOfFix |
private float |
groundSpeed |
static java.lang.String |
HEADER |
private float |
KNOT |
private double |
latitude |
private java.lang.String |
latitudeDirection |
private double |
longitude |
private java.lang.String |
longitudeDirection |
private float |
magneticVariation |
private java.lang.String |
magneticVariationLetter |
private java.lang.String |
nmeaHeader |
private float |
speed |
private java.lang.String |
status |
private java.lang.String |
VOID |
LATITUDE, LONGITUDE
Constructor and Description |
---|
RMCSentence() |
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 |
getCompassDegrees()
Return compass value from GPS
|
int |
getDate()
Get date in integer format
|
java.lang.String |
getHeader()
Returns the NMEA header for this sentence.
|
double |
getLatitude()
Get Latitude
|
double |
getLongitude()
Get Longitude
|
float |
getSpeed()
Get Speed in Kilometers
|
java.lang.String |
getStatus() |
int |
getTime()
Get time in integer format
|
void |
parse(java.lang.String sentence)
Parse a RMC Sentence
$GPRMC,081836,A,3751.65,S,14507.36,E,000.0,360.0,130998,011.3,E*62
|
degreesMinToDegrees, isNumeric
private java.lang.String nmeaHeader
private int dateTimeOfFix
private final int DATETIMELENGTH
private java.lang.String status
private final java.lang.String ACTIVE
private final java.lang.String VOID
private double latitude
private java.lang.String latitudeDirection
private double longitude
private java.lang.String longitudeDirection
private final float KNOT
private float groundSpeed
private float compassDegrees
private int dateOfFix
private float magneticVariation
private java.lang.String magneticVariationLetter
private float speed
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 java.lang.String getStatus()
public double getLatitude()
public double getLongitude()
public float getSpeed()
public int getTime()
public int getDate()
public float getCompassDegrees()
public void parse(java.lang.String sentence)
parse
in class NMEASentence