public interface GGASentence extends PositionSentence, TimeSentence
Example:
$GPGGA,120044,6011.552,N,02501.941,E,1,00,2.0,28.0,M,19.6,M,,*79
Modifier and Type | Field and Description |
---|---|
static char |
ALT_UNIT_FEET
Altitude presented in feet.
|
static char |
ALT_UNIT_METERS
Altitude presented in meters.
|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
double |
getAltitude()
Get antenna altitude above mean sea level.
|
Units |
getAltitudeUnits()
Gets the altitude units, meters or feet.
|
double |
getDgpsAge()
Gets the age of differential GPS data (DGPS).
|
String |
getDgpsStationId()
Gets the ID of DGPS station.
|
GpsFixQuality |
getFixQuality()
Get the GPS fix quality.
|
double |
getGeoidalHeight()
Get height/separation of geoid above WGS84 ellipsoid, i.e. difference
between WGS-84 earth ellipsoid and mean sea level.
|
Units |
getGeoidalHeightUnits()
Get units of height above geoid.
|
double |
getHorizontalDOP()
Get the horizontal dilution of precision (HDOP), i.e. the relative
accuracy of horizontal position.
|
int |
getSatelliteCount()
Get the number of active satellites in use.
|
void |
setAltitude(double alt)
Set the antenna altitude.
|
void |
setAltitudeUnits(Units unit)
Sets the unit of altitude.
|
void |
setDgpsAge(double age)
Sets the age of differential GPS data (DGPS).
|
void |
setDgpsStationId(String id)
Sets the ID of DGPS station.
|
void |
setFixQuality(GpsFixQuality quality)
Sets the GPS fix quality.
|
void |
setGeoidalHeight(double height)
Set height/separation of geoid above WGS84 ellipsoid, i.e. difference
between WGS-84 earth ellipsoid and mean sea level.
|
void |
setGeoidalHeightUnits(Units unit)
Get unit of height above geoid.
|
void |
setHorizontalDOP(double hdop)
Set the horizontal dilution of precision (HDOP), i.e. the relative
accuracy of horizontal position.
|
void |
setSatelliteCount(int count)
Sets the number of active satellites in use.
|
getPosition, setPosition
getTime, setTime
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
static final char ALT_UNIT_METERS
static final char ALT_UNIT_FEET
double getAltitude()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.Units getAltitudeUnits()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.double getDgpsAge()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.String getDgpsStationId()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.GpsFixQuality getFixQuality()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.double getGeoidalHeight()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.Units getGeoidalHeightUnits()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.double getHorizontalDOP()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.int getSatelliteCount()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.void setAltitude(double alt)
alt
- Altitude to setvoid setAltitudeUnits(Units unit)
unit
- Units to setvoid setDgpsAge(double age)
age
- Seconds since last valid RTCM transmission to set.void setDgpsStationId(String id)
id
- Station ID to setvoid setFixQuality(GpsFixQuality quality)
quality
- Fix quality to setvoid setGeoidalHeight(double height)
height
- Height value to setvoid setGeoidalHeightUnits(Units unit)
unit
- Unit to setvoid setHorizontalDOP(double hdop)
hdop
- Horizontal dilutionvoid setSatelliteCount(int count)
count
- Number of satellites to set.IllegalArgumentException
- If given count is negative.Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.