|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lejos.gps.NMEASentence lejos.gps.RMCSentence
public class RMCSentence
RMC is a Class designed to manage RMC Sentences from a NMEA GPS Receiver RMC - NMEA has its own version of essential gps pvt (position, velocity, time) data. It is called RMC, The Recommended Minimum, which will look similar to: $GPRMC,123519,A,4807.038,N,01131.000,E,022.4,084.4,230394,003.1,W*6A Where: RMC Recommended Minimum sentence C 123519 Fix taken at 12:35:19 UTC A Status A=active or V=Void. 4807.038,N Latitude 48 deg 07.038' N 01131.000,E Longitude 11 deg 31.000' E 022.4 Speed over the ground in knots 084.4 Track angle in degrees True 230394 Date - 23rd of March 1994 003.1,W Magnetic Variation *6A The checksum data, always begins with *
Field Summary | |
---|---|
static String |
HEADER
|
Fields inherited from class lejos.gps.NMEASentence |
---|
nmeaSentence, st |
Constructor Summary | |
---|---|
RMCSentence()
|
Method Summary | |
---|---|
float |
getCompassDegrees()
Return compass value from GPS |
int |
getDate()
Get date in integer format |
String |
getHeader()
Returns the NMEA header for this sentence. |
double |
getLatitudeRAW()
Get Latitude |
double |
getLongitudeRAW()
Get Longitude |
String |
getMagneticVariation()
|
float |
getSpeed()
Get Speed in Kilometers |
protected void |
parse(String sentence)
Parse RMC Sentence $GPRMC,081836,A,3751.65,S,14507.36,E,000.0,360.0,130998,011.3,E*62 |
Methods inherited from class lejos.gps.NMEASentence |
---|
checkRefresh, degreesMinToDegrees, getTimeStamp, isValid, setSentence |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String HEADER
Constructor Detail |
---|
public RMCSentence()
Method Detail |
---|
public String getHeader()
getHeader
in class NMEASentence
public double getLatitudeRAW()
public double getLongitudeRAW()
public float getSpeed()
public int getDate()
public float getCompassDegrees()
public String getMagneticVariation()
protected void parse(String sentence)
parse
in class NMEASentence
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |