Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      GSASentence()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getHDOP()
      Return HDOP
      java.lang.String getHeader()
      Returns the NMEA header for this sentence.
      java.lang.String getMode()
      Return Mode1.
      int getModeValue()
      Return Mode2.
      float getPDOP()
      Return PDOP
      int[] getPRN()
      Return an Array with Satellite IDs
      float getVDOP()
      Return VDOP
      void parse​(java.lang.String sentence)
      Method used to parse a GGA Sentence
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GSASentence

        public GSASentence()
        Constructor
    • Method Detail

      • getHeader

        public java.lang.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 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:
        parse in class NMEASentence