接口 VHWSentence
- 所有超级接口:
HeadingSentence,Sentence
Water speed and heading in respect to true and magnetic north.
Example:$IIVHW,,,213,M,0.00,N,,K*2F
- 作者:
- Warren Zahra, Kimmo Tuukkanen
-
字段概要
从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明doubleReturns the current magnetic heading.doubleReturns the current water speed.doubleReturns the current water speed.voidsetMagneticHeading(double hdg) Sets the magnetic heading.voidsetSpeedKmh(double kmh) Sets the water speed in km/h.voidsetSpeedKnots(double knots) Sets the water speed in knots.从接口继承的方法 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
-
方法详细资料
-
getMagneticHeading
double getMagneticHeading()Returns the current magnetic heading.- 返回:
- Heading in degrees magnetic.
-
getSpeedKmh
double getSpeedKmh()Returns the current water speed.- 返回:
- Speed in km/h (kilmetres per hour)
-
getSpeedKnots
double getSpeedKnots()Returns the current water speed.- 返回:
- Speed in knots (nautical miles per hour)
-
setMagneticHeading
void setMagneticHeading(double hdg) Sets the magnetic heading.- 参数:
hdg- Heading in degrees magnetic.- 抛出:
IllegalArgumentException- If value is out of bounds [0..360]
-
setSpeedKmh
void setSpeedKmh(double kmh) Sets the water speed in km/h.- 参数:
kmh- Speed in kilmetres per hour.
-
setSpeedKnots
void setSpeedKnots(double knots) Sets the water speed in knots.- 参数:
knots- Speed in knots (nautical miles per hour)
-