接口 HDGSentence

所有超级接口:
HeadingSentence, Sentence

public interface HDGSentence extends HeadingSentence

Vessel heading with magnetic deviation and variation.

Example:
$HCHDG,205.2,,,2.7,W

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

    • 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].