接口 HDGSentence
- 所有超级接口:
HeadingSentence,Sentence
Vessel heading with magnetic deviation and variation.
Example:$HCHDG,205.2,,,2.7,W
- 作者:
- Kimmo Tuukkanen
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明doubleGet magnetic deviation.doubleGet magnetic variation.voidsetDeviation(double deviation) Set magnetic deviation.voidsetVariation(double variation) Set magnetic variation.从接口继承的方法 net.sf.marineapi.nmea.sentence.HeadingSentence
getHeading, isTrue, setHeading从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
方法详细资料
-
getDeviation
double getDeviation()Get magnetic deviation.- 返回:
- Deviation, in degrees.
-
getVariation
double getVariation()Get magnetic variation. Returns negative values for easterly variation and positive for westerly.- 返回:
- Variation, in degrees.
-
setDeviation
void setDeviation(double deviation) Set magnetic deviation. Provide negative values to set easterly deviation and positive to set westerly. Sets also the correct direction indicator according to value (East/West).- 参数:
deviation- Deviation, in degrees.- 抛出:
IllegalArgumentException- If value is out of range [-180..180].
-
setVariation
void setVariation(double variation) Set magnetic variation. Provide negative values to set easterly variation and positive to set westerly. Sets also the correct direction indicator according to value (East/West).- 参数:
variation- Variation, in degrees.- 抛出:
IllegalArgumentException- If value is out of range [-180..180].
-