接口 GGASentence

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

public interface GGASentence extends PositionSentence, TimeSentence
Global Positioning System fix data. Current position, time and other fix related data for a GPS receiver.

Example:
$GPGGA,120044,6011.552,N,02501.941,E,1,00,2.0,28.0,M,19.6,M,,*79

作者:
Kimmo Tuukkanen
  • 字段详细资料

    • ALT_UNIT_METERS

      static final char ALT_UNIT_METERS
      Altitude presented in meters.
      另请参阅:
    • ALT_UNIT_FEET

      static final char ALT_UNIT_FEET
      Altitude presented in feet.
      另请参阅:
  • 方法详细资料

    • getAltitude

      double getAltitude()
      Get antenna altitude above mean sea level.
      返回:
      Altitude value
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getAltitudeUnits

      Units getAltitudeUnits()
      Gets the altitude units, meters or feet.
      返回:
      Units enum
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getDgpsAge

      double getDgpsAge()
      Gets the age of differential GPS data (DGPS).
      返回:
      Seconds since last valid RTCM transmission
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getDgpsStationId

      String getDgpsStationId()
      Gets the ID of DGPS station.
      返回:
      Station ID (0000-1024)
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getFixQuality

      GpsFixQuality getFixQuality()
      Get the GPS fix quality.
      返回:
      GpsFixQuality enum
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getGeoidalHeight

      double getGeoidalHeight()
      Get height/separation of geoid above WGS84 ellipsoid, i.e. difference between WGS-84 earth ellipsoid and mean sea level. Negative values are below WGS-84 ellipsoid.
      返回:
      Height value
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getGeoidalHeightUnits

      Units getGeoidalHeightUnits()
      Get units of height above geoid.
      返回:
      Units of geoidal height value
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getHorizontalDOP

      double getHorizontalDOP()
      Get the horizontal dilution of precision (HDOP), i.e. the relative accuracy of horizontal position.
      返回:
      Horizontal dilution
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getSatelliteCount

      int getSatelliteCount()
      Get the number of active satellites in use.
      返回:
      Number of satellites
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • setAltitude

      void setAltitude(double alt)
      Set the antenna altitude.
      参数:
      alt - Altitude to set
    • setAltitudeUnits

      void setAltitudeUnits(Units unit)
      Sets the unit of altitude.
      参数:
      unit - Units to set
    • setDgpsAge

      void setDgpsAge(double age)
      Sets the age of differential GPS data (DGPS).
      参数:
      age - Seconds since last valid RTCM transmission to set.
    • setDgpsStationId

      void setDgpsStationId(String id)
      Sets the ID of DGPS station.
      参数:
      id - Station ID to set
    • setFixQuality

      void setFixQuality(GpsFixQuality quality)
      Sets the GPS fix quality.
      参数:
      quality - Fix quality to set
    • setGeoidalHeight

      void setGeoidalHeight(double height)
      Set height/separation of geoid above WGS84 ellipsoid, i.e. difference between WGS-84 earth ellipsoid and mean sea level. Negative values are below WGS-84 ellipsoid.
      参数:
      height - Height value to set
    • setGeoidalHeightUnits

      void setGeoidalHeightUnits(Units unit)
      Get unit of height above geoid.
      参数:
      unit - Unit to set
    • setHorizontalDOP

      void setHorizontalDOP(double hdop)
      Set the horizontal dilution of precision (HDOP), i.e. the relative accuracy of horizontal position.
      参数:
      hdop - Horizontal dilution
    • setSatelliteCount

      void setSatelliteCount(int count)
      Sets the number of active satellites in use.
      参数:
      count - Number of satellites to set.
      抛出:
      IllegalArgumentException - If given count is negative.