lejos.addon.gps
Class GSASentence

java.lang.Object
  extended by lejos.addon.gps.NMEASentence
      extended by lejos.addon.gps.GSASentence

public class GSASentence
extends NMEASentence

This class has been designed to manage a GSA Sentence GPS DOP and active satellites eg1. $GPGSA,A,3,,,,,,16,18,,22,24,,,3.6,2.1,2.2*3C eg2. $GPGSA,A,3,19,28,14,18,27,22,31,39,,,,,1.7,1.0,1.3*35 1 = Mode: M=Manual, forced to operate in 2D or 3D A=Automatic, 3D/2D 2 = Mode: 1=Fix not available 2=2D 3=3D 3-14 = IDs of SVs used in position fix (null for unused fields) 15 = PDOP 16 = HDOP 17 = VDOP

Author:
Juan Antonio Brenha Moral

Field Summary
static String HEADER
           
 
Fields inherited from class lejos.addon.gps.NMEASentence
LATITUDE, LONGITUDE
 
Constructor Summary
GSASentence()
          Constructor
 
Method Summary
 float getHDOP()
          Return HDOP
 String getHeader()
          Returns the NMEA header for this sentence.
 String getMode()
          Return Mode1.
 int getModeValue()
          Return Mode2.
 float getPDOP()
          Return PDOP
 int[] getPRN()
          Return an Array with Satellite IDs
 float getVDOP()
          Return VDOP
protected  void parse(String sentence)
          Method used to parse a GGA Sentence
 
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

GSASentence

public GSASentence()
Constructor

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...)

getMode

public String getMode()
Return Mode1. Mode1 can receive the following values: M=Manual, forced to operate in 2D or 3D A=Automatic, 3D/2D


getModeValue

public int getModeValue()
Return Mode2. Mode1 can receive the following values: 1=Fix not available 2=2D 3=3D


getPRN

public int[] getPRN()
Return an Array with Satellite IDs

Returns:

getPDOP

public float getPDOP()
Return PDOP

Returns:

getHDOP

public float getHDOP()
Return HDOP

Returns:

getVDOP

public float getVDOP()
Return VDOP

Returns:

parse

protected void parse(String sentence)
Method used to parse a GGA Sentence

Specified by:
parse in class NMEASentence