接口 VHWSentence

所有超级接口:
HeadingSentence, Sentence

public interface VHWSentence extends HeadingSentence

Water speed and heading in respect to true and magnetic north.

Example:
$IIVHW,,,213,M,0.00,N,,K*2F

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

    • 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)