接口 GNSSentence
- 所有超级接口:
PositionSentence,Sentence,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
- 作者:
- Kimmo Tuukkanen
-
嵌套类概要
嵌套类修饰符和类型接口说明static enumGNS operational modes, a mix ofFaaModeandGpsFixQualitywith some omitted values. -
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明Returns all additional operation modes, excluding GPS and GLONASS.doubleReturns the age of differential GPS data.Returns the differential reference station ID.doubleReturns 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.Gets the current GLONASS mode.Returns the current GPS mode.doubleReturns the Horizontal Dilution Of Precision, calculated using all available satellites (GPS, GLONASS and any future satellites).doubleReturns the orthometric height (MSL reference).intGet the number of active satellites in use for currect fix.voidsetAdditionalModes(GNSSentence.Mode... modes) Sets the additional operational modes, leaving GPS and GLONASS modes unaffected or setting them bothNONEif field is empty.voidsetDgpsAge(double age) Sets the age of differential GPS data.voidSets the differential reference station ID.voidsetGeoidalSeparation(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.voidSets the current GLONASS mode.voidSets the current GPS mode.voidsetHorizontalDOP(double hdop) Sets the Horizontal Dilution Of Precision value, calculated using all available satellites (GPS, GLONASS and any future satellites).voidsetOrthometricHeight(double height) Sets the orthometric height (MSL reference).voidsetSatelliteCount(int count) Sets the number of satellites used for current fix.从接口继承的方法 net.sf.marineapi.nmea.sentence.PositionSentence
getPosition, setPosition从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString从接口继承的方法 net.sf.marineapi.nmea.sentence.TimeSentence
getTime, setTime
-
方法详细资料
-
getGpsMode
GNSSentence.Mode getGpsMode()Returns the current GPS mode.- 返回:
- GPS operational mode
-
setGpsMode
Sets the current GPS mode.- 参数:
gps- GPS operational mode to set.
-
getGlonassMode
GNSSentence.Mode getGlonassMode()Gets the current GLONASS mode.- 返回:
- GLONASS operational mode
-
setGlonassMode
Sets the current GLONASS mode.- 参数:
gns- GLONASS operational mode to set.
-
getAdditionalModes
GNSSentence.Mode[] getAdditionalModes()Returns all additional operation modes, excluding GPS and GLONASS.- 返回:
- Array of additional modes or empty array if no modes are set.
-
setAdditionalModes
Sets the additional operational modes, leaving GPS and GLONASS modes unaffected or setting them bothNONEif field is empty.- 参数:
modes- Array of additional modes to set
-
getSatelliteCount
int getSatelliteCount()Get the number of active satellites in use for currect fix.- 返回:
- Number of satellites 0..99
-
setSatelliteCount
void setSatelliteCount(int count) Sets the number of satellites used for current fix.- 参数:
count- Number of satellites to set- 抛出:
IllegalArgumentException- If given count is out of bounds 0..99
-
getHorizontalDOP
double getHorizontalDOP()Returns the Horizontal Dilution Of Precision, calculated using all available satellites (GPS, GLONASS and any future satellites).- 返回:
- HDOP value
-
setHorizontalDOP
void setHorizontalDOP(double hdop) Sets the Horizontal Dilution Of Precision value, calculated using all available satellites (GPS, GLONASS and any future satellites).- 参数:
hdop- HDOP value to set
-
getOrthometricHeight
double getOrthometricHeight()Returns the orthometric height (MSL reference).- 返回:
- Height in meters
-
setOrthometricHeight
void setOrthometricHeight(double height) Sets the orthometric height (MSL reference).- 参数:
height- Height to set, in meters.
-
getGeoidalSeparation
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. Negative values denote mean-sea-level surface below ellipsoid.- 返回:
- Geoidal separation in meters.
-
setGeoidalSeparation
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. Negative values denote mean-sea-level surface below ellipsoid.- 参数:
separation- Geoidal separation in meters.
-
getDgpsAge
double getDgpsAge()Returns the age of differential GPS data.Notice: field is
nullwhen Talker ID isGN, additional GNS messages follow withGPand/orGLage of differential data.- 返回:
- Age of differential data.
-
setDgpsAge
void setDgpsAge(double age) Sets the age of differential GPS data.Notice: field is
nullwhen Talker ID isGN, additional GNS messages follow withGPand/orGLage of differential data.- 参数:
age- Age to set, negative values will reset the field empty.
-
getDgpsStationId
String getDgpsStationId()Returns the differential reference station ID.- 返回:
- Station ID, 0000..4095
-
setDgpsStationId
Sets the differential reference station ID.- 参数:
id- Station ID to set, 0-4095
-