lejos.gps
Class RMCSentence

java.lang.Object
  extended by lejos.gps.NMEASentence
      extended by lejos.gps.RMCSentence

public class RMCSentence
extends NMEASentence

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 *

Author:
Juan Antonio Brenha Moral (major recoding by BB)

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

HEADER

public static final String HEADER
See Also:
Constant Field Values
Constructor Detail

RMCSentence

public RMCSentence()
Method Detail

getHeader

public String getHeader()
Returns the NMEA header for this sentence.

Specified by:
getHeader in class NMEASentence
Returns:
The NMEA header string ($GPGGA, $GPVTG, etc...)

getLatitudeRAW

public double getLatitudeRAW()
Get Latitude


getLongitudeRAW

public double getLongitudeRAW()
Get Longitude

Returns:
the raw longitude

getSpeed

public float getSpeed()
Get Speed in Kilometers

Returns:
the speed in kilometers per ???

getDate

public int getDate()
Get date in integer format

Returns:
the date in integer format

getCompassDegrees

public float getCompassDegrees()
Return compass value from GPS

Returns:
the compass value in degrees. -1 means it hasn't been obtained yet.

getMagneticVariation

public String getMagneticVariation()

parse

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

Specified by:
parse in class NMEASentence