接口 GGASentence
- 所有超级接口:
PositionSentence,Sentence,TimeSentence
Global Positioning System fix data. Current position, time and other fix
related data for a GPS receiver.
Example:
$GPGGA,120044,6011.552,N,02501.941,E,1,00,2.0,28.0,M,19.6,M,,*79
- 作者:
- Kimmo Tuukkanen
-
字段概要
字段修饰符和类型字段说明static final charAltitude presented in feet.static final charAltitude presented in meters.从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明doubleGet antenna altitude above mean sea level.Gets the altitude units, meters or feet.doubleGets the age of differential GPS data (DGPS).Gets the ID of DGPS station.Get the GPS fix quality.doubleGet height/separation of geoid above WGS84 ellipsoid, i.e. difference between WGS-84 earth ellipsoid and mean sea level.Get units of height above geoid.doubleGet the horizontal dilution of precision (HDOP), i.e. the relative accuracy of horizontal position.intGet the number of active satellites in use.voidsetAltitude(double alt) Set the antenna altitude.voidsetAltitudeUnits(Units unit) Sets the unit of altitude.voidsetDgpsAge(double age) Sets the age of differential GPS data (DGPS).voidSets the ID of DGPS station.voidsetFixQuality(GpsFixQuality quality) Sets the GPS fix quality.voidsetGeoidalHeight(double height) Set height/separation of geoid above WGS84 ellipsoid, i.e. difference between WGS-84 earth ellipsoid and mean sea level.voidsetGeoidalHeightUnits(Units unit) Get unit of height above geoid.voidsetHorizontalDOP(double hdop) Set the horizontal dilution of precision (HDOP), i.e. the relative accuracy of horizontal position.voidsetSatelliteCount(int count) Sets the number of active satellites in use.从接口继承的方法 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
-
字段详细资料
-
方法详细资料
-
getAltitude
double getAltitude()Get antenna altitude above mean sea level.- 返回:
- Altitude value
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
getAltitudeUnits
Units getAltitudeUnits()Gets the altitude units, meters or feet.- 返回:
- Units enum
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
getDgpsAge
double getDgpsAge()Gets the age of differential GPS data (DGPS).- 返回:
- Seconds since last valid RTCM transmission
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
getDgpsStationId
String getDgpsStationId()Gets the ID of DGPS station.- 返回:
- Station ID (0000-1024)
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
getFixQuality
GpsFixQuality getFixQuality()Get the GPS fix quality.- 返回:
- GpsFixQuality enum
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
getGeoidalHeight
double getGeoidalHeight()Get height/separation of geoid above WGS84 ellipsoid, i.e. difference between WGS-84 earth ellipsoid and mean sea level. Negative values are below WGS-84 ellipsoid.- 返回:
- Height value
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
getGeoidalHeightUnits
Units getGeoidalHeightUnits()Get units of height above geoid.- 返回:
- Units of geoidal height value
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
getHorizontalDOP
double getHorizontalDOP()Get the horizontal dilution of precision (HDOP), i.e. the relative accuracy of horizontal position.- 返回:
- Horizontal dilution
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
getSatelliteCount
int getSatelliteCount()Get the number of active satellites in use.- 返回:
- Number of satellites
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
setAltitude
void setAltitude(double alt) Set the antenna altitude.- 参数:
alt- Altitude to set
-
setAltitudeUnits
Sets the unit of altitude.- 参数:
unit- Units to set
-
setDgpsAge
void setDgpsAge(double age) Sets the age of differential GPS data (DGPS).- 参数:
age- Seconds since last valid RTCM transmission to set.
-
setDgpsStationId
Sets the ID of DGPS station.- 参数:
id- Station ID to set
-
setFixQuality
Sets the GPS fix quality.- 参数:
quality- Fix quality to set
-
setGeoidalHeight
void setGeoidalHeight(double height) Set height/separation of geoid above WGS84 ellipsoid, i.e. difference between WGS-84 earth ellipsoid and mean sea level. Negative values are below WGS-84 ellipsoid.- 参数:
height- Height value to set
-
setGeoidalHeightUnits
Get unit of height above geoid.- 参数:
unit- Unit to set
-
setHorizontalDOP
void setHorizontalDOP(double hdop) Set the horizontal dilution of precision (HDOP), i.e. the relative accuracy of horizontal position.- 参数:
hdop- Horizontal dilution
-
setSatelliteCount
void setSatelliteCount(int count) Sets the number of active satellites in use.- 参数:
count- Number of satellites to set.- 抛出:
IllegalArgumentException- If given count is negative.
-