public interface GNSSentence extends Sentence, 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
Modifier and Type | Interface and Description |
---|---|
static class |
GNSSentence.Mode
GNS operational modes, a mix of
FaaMode
and GpsFixQuality with some values omitted. |
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
GNSSentence.Mode[] |
getAdditionalModes()
Returns all additional operation modes, excluding GPS and GLONASS.
|
double |
getDgpsAge()
Returns the age of differential GPS data.
|
String |
getDgpsStationId()
Returns the differential reference station ID.
|
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.
|
GNSSentence.Mode |
getGlonassMode()
Gets the current GLONASS mode.
|
GNSSentence.Mode |
getGpsMode()
Returns the current GPS mode.
|
double |
getHorizontalDOP()
Returns the Horizontal Dilution Of Precision, calculated using all available
satellites (GPS, GLONASS and any future satellites).
|
double |
getOrthometricHeight()
Returns the orthometric height (MSL reference).
|
int |
getSatelliteCount()
Get the number of active satellites in use for currect fix.
|
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. |
void |
setDgpsAge(double age)
Sets the age of differential GPS data.
|
void |
setDgpsStationId(String id)
Sets the differential reference station ID.
|
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.
|
void |
setGlonassMode(GNSSentence.Mode gns)
Sets the current GLONASS mode.
|
void |
setGpsMode(GNSSentence.Mode gps)
Sets the current GPS mode.
|
void |
setHorizontalDOP(double hdop)
Sets the Horizontal Dilution Of Precision value, calculated using all available
satellites (GPS, GLONASS and any future satellites).
|
void |
setOrthometricHeight(double height)
Sets the orthometric height (MSL reference).
|
void |
setSatelliteCount(int count)
Sets the number of satellites used for current fix.
|
getPosition, setPosition
getTime, setTime
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
GNSSentence.Mode getGpsMode()
void setGpsMode(GNSSentence.Mode gps)
gps
- GPS operational mode to set.GNSSentence.Mode getGlonassMode()
void setGlonassMode(GNSSentence.Mode gns)
gns
- GLONASS operational mode to set.GNSSentence.Mode[] getAdditionalModes()
void setAdditionalModes(GNSSentence.Mode... modes)
NONE
if field is empty.modes
- Array of additional modes to setint getSatelliteCount()
void setSatelliteCount(int count)
count
- Number of satellites to setIllegalArgumentException
- If given count is out of bounds 0..99double getHorizontalDOP()
void setHorizontalDOP(double hdop)
hdop
- HDOP value to setdouble getOrthometricHeight()
void setOrthometricHeight(double height)
height
- Height to set, in meters.double getGeoidalSeparation()
void setGeoidalSeparation(double separation)
separation
- Geoidal separation in meters.double getDgpsAge()
Notice: field is null
when Talker ID is GN
, additional GNS messages
follow with GP
and/or GL
age of differential data.
void setDgpsAge(double age)
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.String getDgpsStationId()
void setDgpsStationId(String id)
id
- Station ID to set, 0-4095Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.