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 (major recoding by BB)

Field Summary
static String HEADER
           
 
Fields inherited from class lejos.addon.gps.NMEASentence
nmeaSentence, st
 
Constructor Summary
GSASentence()
           
 
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 prn (Pseudo Randon Noise) code.
 float getVDOP()
          Return vdop
protected  void parse(String sentence)
          Method used to parse a GGA Sentence
 
Methods inherited from class lejos.addon.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

GSASentence

public GSASentence()
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 prn (Pseudo Randon Noise) code.

Returns:
the array of satellite IDs

getPDOP

public float getPDOP()
Return pdop

Returns:
the pdop

getHDOP

public float getHDOP()
Return hdop

Returns:
the hdop

getVDOP

public float getVDOP()
Return vdop

Returns:
the vdop

parse

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

Specified by:
parse in class NMEASentence