Package lejos.hardware.gps
Class GSASentence
- java.lang.Object
-
- lejos.hardware.gps.NMEASentence
-
- lejos.hardware.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 Added changes by Alan M Gilkes - Nov 12th 2014 - Lawrie Griffiths
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHEADER-
Fields inherited from class lejos.hardware.gps.NMEASentence
LATITUDE, LONGITUDE
-
-
Constructor Summary
Constructors Constructor Description GSASentence()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetHDOP()Return HDOPjava.lang.StringgetHeader()Returns the NMEA header for this sentence.java.lang.StringgetMode()Return Mode1.intgetModeValue()Return Mode2.floatgetPDOP()Return PDOPint[]getPRN()Return an Array with Satellite IDsfloatgetVDOP()Return VDOPvoidparse(java.lang.String sentence)Method used to parse a GGA Sentence-
Methods inherited from class lejos.hardware.gps.NMEASentence
degreesMinToDegrees, isNumeric
-
-
-
-
Field Detail
-
HEADER
public static final java.lang.String HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHeader
public java.lang.String getHeader()
Returns the NMEA header for this sentence.- Specified by:
getHeaderin classNMEASentence- Returns:
- The NMEA header string ($GPGGA, $GPVTG, etc...)
-
getMode
public java.lang.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:
- an 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
public void parse(java.lang.String sentence)
Method used to parse a GGA Sentence- Specified by:
parsein classNMEASentence
-
-