接口 GSVSentence

所有超级接口:
Sentence

public interface GSVSentence extends Sentence
Detailed GPS satellite data; satellites in view, satellite elevation, azimuth and signal noise ratio (SNR). GSV sentences are transmitted typically in groups of two or three sentences, depending on the number of satellites in view. Each GSV sentence may contain information about up to four satellites. The last sentence in sequence may contain empty satellite information fields. The empty fields may also be omitted, depending on the device model and manufacturer.

Example:
$GPGSV,3,2,12,15,56,182,51,17,38,163,47,18,63,058,50,21,53,329,47*73

作者:
Kimmo Tuukkanen
  • 方法详细资料

    • getSatelliteCount

      int getSatelliteCount()
      Get the number of satellites in view.
      返回:
      Satellite count
    • getSatelliteInfo

      List<SatelliteInfo> getSatelliteInfo()
      Get the satellites information.
      返回:
      List of SatelliteInfo objects.
    • getSentenceCount

      int getSentenceCount()
      Get the total number of sentences in GSV sequence.
      返回:
      Number of sentences
    • getSentenceIndex

      int getSentenceIndex()
      Get the index of this sentence in GSV sequence.
      返回:
      Sentence index
    • isFirst

      boolean isFirst()
      Tells if this is the first sentence in GSV sequence.
      返回:
      true if first, otherwise false.
      另请参阅:
    • isLast

      boolean isLast()
      Tells if this is the last sentence in GSV sequence. This is a convenience method for comparison of ({@link #getSentenceCount()} == {@link #getSentenceIndex()}) .
      返回:
      true if first, otherwise false.
    • setSatelliteCount

      void setSatelliteCount(int count)
      Set the number of satellites in view.
      参数:
      count - Satellite count
      抛出:
      IllegalArgumentException - If specified number is negative
    • setSatelliteInfo

      void setSatelliteInfo(List<SatelliteInfo> info)
      Set the satellite information.
      参数:
      info - List of SatelliteInfo objects, size from 0 to 4.
      抛出:
      IllegalArgumentException - If specified list size is greater that maximum allowed number of satellites per sentence (4).
    • setSentenceCount

      void setSentenceCount(int count)
      Set the total number of sentences in GSV sequence.
      参数:
      count - Number of sentences
      抛出:
      IllegalArgumentException - If specified count is negative
    • setSentenceIndex

      void setSentenceIndex(int index)
      Set the index of this sentence in GSV sequence.
      参数:
      index - Sentence index to set
      抛出:
      IllegalArgumentException - If specified index is negative