public class RMCSentence extends NMEASentence
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEADER |
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
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