public interface HeadingSentence extends Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
double |
getHeading()
Returns the vessel's current heading.
|
boolean |
isTrue()
Tells if the heading returned and set by
getHeading() and
setHeading(double) methods is true or magnetic
. |
void |
setHeading(double hdt)
Sets the heading value.
|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
double getHeading()
isTrue()
boolean isTrue()
getHeading()
and
setHeading(double)
methods is true or magnetic
.true
if true heading, otherwise false
for magnetic heading.void setHeading(double hdt)
hdt
- Heading in degreesIllegalArgumentException
- If heading value out of range [0..360]isTrue()
Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.