lejos.addon.gps
Class RMCSentence

java.lang.Object
  extended by lejos.addon.gps.NMEASentence
      extended by lejos.addon.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

Field Summary
static String HEADER
           
 
Fields inherited from class lejos.addon.gps.NMEASentence
LATITUDE, LONGITUDE
 
Constructor Summary
RMCSentence()
           
 
Method Summary
 int getCompassDegrees()
          Return compass value from GPS
 int getDate()
           
 String getHeader()
          Returns the NMEA header for this sentence.
 float getLatitude()
          Get Latitude
 float getLongitude()
          Get Longitude
 float getSpeed()
          Get Speed in Kilometers
 String getStatus()
           
 int getTime()
          Get date in integer format
 void parse(String sentence)
          Parase a 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.addon.gps.NMEASentence
degreesMinToDegrees, isNumeric
 
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...)

getStatus

public String getStatus()

getLatitude

public float getLatitude()
Get Latitude


getLongitude

public float getLongitude()
Get Longitude

Returns:

getSpeed

public float getSpeed()
Get Speed in Kilometers

Returns:

getTime

public int getTime()
Get date in integer format

Returns:

getDate

public int getDate()

getCompassDegrees

public int getCompassDegrees()
Return compass value from GPS

Returns:

parse

public void parse(String sentence)
Parase a 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