接口 MWVSentence

所有超级接口:
Sentence

public interface MWVSentence extends Sentence

Wind speed and angle. Speed in km/h, m/s, or knots. Wind angle is given in degrees relative to bow or true north.

Example:
$IIMWV,199,R,5.9,N,A*2E

作者:
Kimmo Tuukkanen
  • 方法详细资料

    • getAngle

      double getAngle()
      Get wind angle.
      返回:
      Wind angle in degrees.
    • getSpeed

      double getSpeed()
      Returns the wind speed.
      返回:
      Wind speed value
    • getSpeedUnit

      Units getSpeedUnit()
      Returns the wind speed unit.
      返回:
      Units.METER for meters per second, Units.KILOMETERS for kilometers per hour and Units.NAUTICAL_MILES for knots.
    • getStatus

      DataStatus getStatus()
      Get data validity status.
      返回:
      Data status
    • isTrue

      boolean isTrue()
      Tells if the angle is relative or true.
      返回:
      True if relative to true north, otherwise false (relative to bow)
    • setAngle

      void setAngle(double angle)
      Set wind angle.
      参数:
      angle - Wind angle in degrees.
      另请参阅:
    • setSpeed

      void setSpeed(double speed)
      Set the wind speed value.
      参数:
      speed - Wind speed to set.
    • setSpeedUnit

      void setSpeedUnit(Units unit)
      Set wind speed unit.
      参数:
      unit - Units.METER for meters per second, Units.KILOMETERS for kilometers per hour and Units.NAUTICAL_MILES for knots.
      抛出:
      IllegalArgumentException - If trying to set invalid unit
    • setStatus

      void setStatus(DataStatus status)
      Set data validity status.
      参数:
      status - Data status to set.
    • setTrue

      void setTrue(boolean isTrue)
      Set angle to relative or true.
      参数:
      isTrue - True for true angle, false for relative to bow.
      另请参阅: