|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GSVSentence
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
Field Summary |
---|
Fields inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
ADDRESS_FIELD, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR |
Method Summary | |
---|---|
int |
getSatelliteCount()
Get the number of satellites in view. |
List<SatelliteInfo> |
getSatelliteInfo()
Get the satellites information. |
int |
getSentenceCount()
Get the total number of sentences in GSV sequence. |
int |
getSentenceIndex()
Get the index of this sentence in GSV sequence. |
boolean |
isFirst()
Tells if this is the first sentence in GSV sequence. |
boolean |
isLast()
Tells if this is the last sentence in GSV sequence. |
void |
setSatelliteCount(int count)
Set the number of satellites in view. |
void |
setSatelliteInfo(List<SatelliteInfo> info)
Set the satellite information. |
void |
setSentenceCount(int count)
Set the total number of sentences in GSV sequence. |
void |
setSentenceIndex(int index)
Set the index of this sentence in GSV sequence. |
Methods inherited from interface net.sf.marineapi.nmea.sentence.Sentence |
---|
getFieldCount, getSentenceId, getTalkerId, isProprietary, isValid, setTalkerId, toSentence, toString |
Method Detail |
---|
int getSatelliteCount()
List<SatelliteInfo> getSatelliteInfo()
int getSentenceCount()
int getSentenceIndex()
boolean isFirst()
getSentenceCount()
,
getSentenceIndex()
boolean isLast()
(getSentenceCount()
== getSentenceIndex()
)
.
true
if first, otherwise false
.void setSatelliteCount(int count)
count
- Satellite count
IllegalArgumentException
- If specified number is negativevoid setSatelliteInfo(List<SatelliteInfo> info)
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).void setSentenceCount(int count)
count
- Number of sentences
IllegalArgumentException
- If specified count is negativevoid setSentenceIndex(int index)
index
- Sentence index to set
IllegalArgumentException
- If specified index is negative
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |