接口 GNSSentence

所有超级接口:
PositionSentence, Sentence, TimeSentence

public interface GNSSentence extends PositionSentence, TimeSentence

GNSS capable receivers will always output this message with the GN talker ID. GNSS capable receivers will also output this message with the GP and/or GL talker ID when using more than one constellation for the position fix.

Example:

 $GNGNS,014035.00,4332.69262,S,17235.48549,E,RR,13,0.9,25.63,11.24,,*70
 $GPGNS,014035.00,,,,,,8,,,,1.0,23*76
 $GLGNS,014035.00,,,,,,5,,,,1.0,23*67
 
作者:
Kimmo Tuukkanen
  • 方法详细资料

    • getGpsMode

      GNSSentence.Mode getGpsMode()
      Returns the current GPS mode.
      返回:
      GPS operational mode
    • setGpsMode

      void setGpsMode(GNSSentence.Mode gps)
      Sets the current GPS mode.
      参数:
      gps - GPS operational mode to set.
    • getGlonassMode

      GNSSentence.Mode getGlonassMode()
      Gets the current GLONASS mode.
      返回:
      GLONASS operational mode
    • setGlonassMode

      void setGlonassMode(GNSSentence.Mode gns)
      Sets the current GLONASS mode.
      参数:
      gns - GLONASS operational mode to set.
    • getAdditionalModes

      GNSSentence.Mode[] getAdditionalModes()
      Returns all additional operation modes, excluding GPS and GLONASS.
      返回:
      Array of additional modes or empty array if no modes are set.
    • setAdditionalModes

      void setAdditionalModes(GNSSentence.Mode... modes)
      Sets the additional operational modes, leaving GPS and GLONASS modes unaffected or setting them both NONE if field is empty.
      参数:
      modes - Array of additional modes to set
    • getSatelliteCount

      int getSatelliteCount()
      Get the number of active satellites in use for currect fix.
      返回:
      Number of satellites 0..99
    • setSatelliteCount

      void setSatelliteCount(int count)
      Sets the number of satellites used for current fix.
      参数:
      count - Number of satellites to set
      抛出:
      IllegalArgumentException - If given count is out of bounds 0..99
    • getHorizontalDOP

      double getHorizontalDOP()
      Returns the Horizontal Dilution Of Precision, calculated using all available satellites (GPS, GLONASS and any future satellites).
      返回:
      HDOP value
    • setHorizontalDOP

      void setHorizontalDOP(double hdop)
      Sets the Horizontal Dilution Of Precision value, calculated using all available satellites (GPS, GLONASS and any future satellites).
      参数:
      hdop - HDOP value to set
    • getOrthometricHeight

      double getOrthometricHeight()
      Returns the orthometric height (MSL reference).
      返回:
      Height in meters
    • setOrthometricHeight

      void setOrthometricHeight(double height)
      Sets the orthometric height (MSL reference).
      参数:
      height - Height to set, in meters.
    • getGeoidalSeparation

      double getGeoidalSeparation()
      Returns geoidal separation, the difference between the earth ellipsoid surface and mean-sea-level (geoid) surface defined by the reference datum used in the position solution. Negative values denote mean-sea-level surface below ellipsoid.
      返回:
      Geoidal separation in meters.
    • setGeoidalSeparation

      void setGeoidalSeparation(double separation)
      Returns geoidal separation, the difference between the earth ellipsoid surface and mean-sea-level (geoid) surface defined by the reference datum used in the position solution. Negative values denote mean-sea-level surface below ellipsoid.
      参数:
      separation - Geoidal separation in meters.
    • getDgpsAge

      double getDgpsAge()
      Returns the age of differential GPS data.

      Notice: field is null when Talker ID is GN, additional GNS messages follow with GP and/or GL age of differential data.

      返回:
      Age of differential data.
    • setDgpsAge

      void setDgpsAge(double age)
      Sets the age of differential GPS data.

      Notice: field is null when Talker ID is GN, additional GNS messages follow with GP and/or GL age of differential data.

      参数:
      age - Age to set, negative values will reset the field empty.
    • getDgpsStationId

      String getDgpsStationId()
      Returns the differential reference station ID.
      返回:
      Station ID, 0000..4095
    • setDgpsStationId

      void setDgpsStationId(String id)
      Sets the differential reference station ID.
      参数:
      id - Station ID to set, 0-4095