接口 GSVSentence
- 所有超级接口:
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
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明intGet the number of satellites in view.Get the satellites information.intGet the total number of sentences in GSV sequence.intGet the index of this sentence in GSV sequence.booleanisFirst()Tells if this is the first sentence in GSV sequence.booleanisLast()Tells if this is the last sentence in GSV sequence.voidsetSatelliteCount(int count) Set the number of satellites in view.voidsetSatelliteInfo(List<SatelliteInfo> info) Set the satellite information.voidsetSentenceCount(int count) Set the total number of sentences in GSV sequence.voidsetSentenceIndex(int index) Set the index of this sentence in GSV sequence.从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
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()}).- 返回:
trueif first, otherwisefalse.
-
setSatelliteCount
void setSatelliteCount(int count) Set the number of satellites in view.- 参数:
count- Satellite count- 抛出:
IllegalArgumentException- If specified number is negative
-
setSatelliteInfo
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
-