public interface RMCSentence extends PositionSentence, TimeSentence, DateSentence
Example:
$GPRMC,120044,A,6011.552,N,02501.941,E,000.0,360.0,160705,006.1,E*7C
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR| Modifier and Type | Method and Description |
|---|---|
double |
getCorrectedCourse()
Get the corrected course over ground.
|
double |
getCourse()
Get true course over ground (COG).
|
CompassPoint |
getDirectionOfVariation()
Get the direction of magnetic variation; east or west.
|
FaaMode |
getMode()
Get the FAA operating mode for GPS.
|
double |
getSpeed()
Get current speed over ground (SOG).
|
DataStatus |
getStatus()
Gets the data status, valid or invalid.
|
double |
getVariation()
Get the magnetic variation.
|
void |
setCourse(double cog)
Set true course over ground (COG).
|
void |
setDirectionOfVariation(CompassPoint dir)
Set the direction of magnetic variation, east or west.
|
void |
setMode(FaaMode mode)
Set the FAA operation mode of GPS.
|
void |
setSpeed(double sog)
Set current speed over ground (SOG).
|
void |
setStatus(DataStatus status)
Set the data status, valid or invalid.
|
void |
setVariation(double var)
Set the magnetic variation.
|
getPosition, setPositiongetTime, setTimegetDate, setDategetBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toStringdouble getCorrectedCourse()
DataNotAvailableException - If course or
variation data is not available.ParseException - If course or variation
field contains unexpected or illegal value.getCourse(),
getVariation()double getCourse()
DataNotAvailableException - If the data is
not available.ParseException - If the field contains
unexpected or illegal value.CompassPoint getDirectionOfVariation()
DataNotAvailableException - If the data is
not available.ParseException - If the field contains
unexpected or illegal value.FaaMode getMode()
DataNotAvailableException - If the data is
not available.ParseException - If the field contains
unexpected or illegal value.double getSpeed()
DataNotAvailableException - If the data is
not available.ParseException - If the field contains
unexpected or illegal value.DataStatus getStatus()
DataStatus.ACTIVE or DataStatus.VOIDDataNotAvailableException - If the data is
not available.ParseException - If the field contains
unexpected or illegal value.double getVariation()
DataNotAvailableException - If the data is
not available.ParseException - If the field contains
unexpected or illegal value.void setCourse(double cog)
cog - True course in degreesvoid setDirectionOfVariation(CompassPoint dir)
dir - CompassPoint.EAST or CompassPoint.WESTIllegalArgumentException - If specified Direction is other than
defined as valid for param dir.void setMode(FaaMode mode)
mode - Mode to setvoid setSpeed(double sog)
sog - Speed in knots (nautical miles per hour).void setStatus(DataStatus status)
status - DataStatus.ACTIVE or DataStatus.VOIDvoid setVariation(double var)
var - Magnetic variation in degreesCopyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.