接口 VWTSentence
- 所有超级接口:
Sentence
True Wind Speed and Angle. True wind angle in relation to the vessel's heading and true wind speed referenced to the water. Speed in Knots, Meters Per Second and Kilometers Per Hour.
Example:
$--VWT,x.x,a,x.x,N,x.x,M,x.x,K*hh<CR><LF>
- 作者:
- Henri Laurent
-
字段概要
字段修饰符和类型字段说明static final charUnits indicator for kilometers per hourstatic final charUnits indicator for knots (nautical miles per hour)static final charUnits indicator for meters per second从接口继承的字段 net.sf.marineapi.nmea.sentence.Sentence
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR -
方法概要
修饰符和类型方法说明Get the Wind angle Left/Right of bowdoubleGet relative wind speed, in kilometers per hour.doubleGet relative wind speed in knots.doubleGet the Wind angle magnitude in degreesvoidsetDirectionLeftRight(Direction direction) Set the Wind angle Left/Right of bowvoidsetSpeedKmh(double kmh) Set the relative wind speed in kmhvoidsetSpeedKnots(double knots) Set the relative wind speed in knots.voidsetWindAngle(double mWindAngle) Set the Wind angle magnitude从接口继承的方法 net.sf.marineapi.nmea.sentence.Sentence
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
-
字段详细资料
-
方法详细资料
-
getWindAngle
double getWindAngle()Get the Wind angle magnitude in degrees- 返回:
- Wind angle
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
getDirectionLeftRight
Direction getDirectionLeftRight()Get the Wind angle Left/Right of bow- 返回:
Directionenum- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.- 从以下版本开始:
- NMEA 2.3
-
getSpeedKmh
double getSpeedKmh()Get relative wind speed, in kilometers per hour.- 返回:
- Speed in km/h
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
getSpeedKnots
double getSpeedKnots()Get relative wind speed in knots.- 返回:
- Speed in knots (nautical miles per hour)
- 抛出:
DataNotAvailableException- If the data is not available.ParseException- If the field contains unexpected or illegal value.
-
setWindAngle
void setWindAngle(double mWindAngle) Set the Wind angle magnitude- 参数:
mWindAngle- Wind angle magnitude in degrees.
-
setDirectionLeftRight
Set the Wind angle Left/Right of bow- 参数:
direction- Direction to set- 从以下版本开始:
- NMEA 2.3
-
setSpeedKmh
void setSpeedKmh(double kmh) Set the relative wind speed in kmh- 参数:
kmh- Speed in kilometers per hour (km/h).
-
setSpeedKnots
void setSpeedKnots(double knots) Set the relative wind speed in knots.- 参数:
knots- Speed in knots (nautical miles per hour)
-