接口 RMCSentence

所有超级接口:
DateSentence, PositionSentence, Sentence, TimeSentence

public interface RMCSentence extends PositionSentence, TimeSentence, DateSentence
Recommended minimum navigation information type C. Current time and date, position, speed over ground, true course over ground and magnetic variation.

Example:
$GPRMC,120044,A,6011.552,N,02501.941,E,000.0,360.0,160705,006.1,E*7C

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

    • getCorrectedCourse

      double getCorrectedCourse()
      Get the corrected course over ground. Correction is done by subtracting or adding the magnetic variation from true course (easterly variation subtracted and westerly added).
      返回:
      Corrected true course
      抛出:
      DataNotAvailableException - If course or variation data is not available.
      ParseException - If course or variation field contains unexpected or illegal value.
      另请参阅:
    • getCourse

      double getCourse()
      Get true course over ground (COG).
      返回:
      True course in degrees
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getDirectionOfVariation

      CompassPoint getDirectionOfVariation()
      Get the direction of magnetic variation; east or west.
      返回:
      Direction.EAST or Direction.WEST
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getMode

      FaaMode getMode()
      Get the FAA operating mode for GPS.
      返回:
      FaaMode enum
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getNavStatus

      NavStatus getNavStatus()
      Get the Navigation Status.
      返回:
      NavStatus enum
    • getSpeed

      double getSpeed()
      Get current speed over ground (SOG).
      返回:
      Speed in knots (nautical miles per hour).
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getStatus

      DataStatus getStatus()
      Gets the data status, valid or invalid.
      返回:
      DataStatus.ACTIVE or DataStatus.VOID
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • getVariation

      double getVariation()
      Get the magnetic variation. Easterly variation subtracts from true course, and is thus returned as negative value. Otherwise, the value is positive.
      返回:
      Magnetic variation in degrees
      抛出:
      DataNotAvailableException - If the data is not available.
      ParseException - If the field contains unexpected or illegal value.
    • setCourse

      void setCourse(double cog)
      Set true course over ground (COG).
      参数:
      cog - True course in degrees
    • setDirectionOfVariation

      void setDirectionOfVariation(CompassPoint dir)
      Set the direction of magnetic variation, east or west.
      参数:
      dir - CompassPoint.EAST or CompassPoint.WEST
      抛出:
      IllegalArgumentException - If specified Direction is other than defined as valid for param dir.
    • setMode

      void setMode(FaaMode mode)
      Set the FAA operation mode of GPS.
      参数:
      mode - FaaMode enum to set
    • setNavStatus

      void setNavStatus(NavStatus navStatus)
      Set the Navigation Status.
      参数:
      navStatus - NavStatus enum to set
    • setSpeed

      void setSpeed(double sog)
      Set current speed over ground (SOG).
      参数:
      sog - Speed in knots (nautical miles per hour).
    • setStatus

      void setStatus(DataStatus status)
      Set the data status, valid or invalid.
      参数:
      status - DataStatus.ACTIVE or DataStatus.VOID
    • setVariation

      void setVariation(double var)
      Set the magnetic variation.
      参数:
      var - Magnetic variation in degrees