Package GPS

Class GPSParameters

java.lang.Object
GPS.GPSParameters
All Implemented Interfaces:
Serializable, Cloneable, ManagedParameters

public class GPSParameters extends Object implements Serializable, Cloneable, ManagedParameters
See Also:
  • Field Details

    • serialVersionUID

      public static final long serialVersionUID
      See Also:
    • setClockOnStartup

      public boolean setClockOnStartup
    • dimA

      public double dimA
      distance from bow to antenna
    • dimB

      public double dimB
      distance from antenna to stern
    • dimC

      public double dimC
      distance from port side to antenna
    • dimD

      public double dimD
      distance from antenna to starboard side
    • plotPredictedPosition

      public boolean plotPredictedPosition
      On the map, work out where the ship will be and draw an arrow to that point
    • predictionTime

      public int predictionTime
      time for prediction arrow (seconds)
    • readHeading

      public boolean readHeading
    • headingNMEASource

      public String headingNMEASource
    • READ_GGA

      public static final int READ_GGA
      See Also:
    • READ_RMC

      public static final int READ_RMC
      See Also:
    • mainString

      public int mainString
      Which strings to read
    • rmcInitials

      public String rmcInitials
      String initials
    • ggaInitials

      public String ggaInitials
    • allowWildcard

      public boolean allowWildcard
    • readTrueHeading

      public boolean readTrueHeading
      Attempt to read true heading information
    • headingString

      public String headingString
      String for true heading
    • headingStringPos

      public int headingStringPos
      position of data in headingString
    • headingSmoothing

      public boolean headingSmoothing
      GPS HEading Smoothing
    • readType

      public int readType
      storage and read options: Can either read everything that comes in or just read every n seconds, or be a bit more clever and read every n seconds OR whenever course or speed have changed by more than than some set amount.
    • READ_ALL

      public static final int READ_ALL
      Read everything
      See Also:
    • READ_TIMER

      public static final int READ_TIMER
      Read on a fixed time interval
      See Also:
    • READ_DYNAMIC

      public static final int READ_DYNAMIC
      Read on a fixed time interval or when course or speed change
      See Also:
    • readInterval

      public int readInterval
      Interval between reads in seconds
    • courseInterval

      public double courseInterval
      Minimum course change for a dynamic read
    • speedInterval

      public double speedInterval
      Minimum speed change for a dynamic read
  • Constructor Details

    • GPSParameters

      public GPSParameters()
  • Method Details

    • clone

      public GPSParameters clone()
    • getSmoothingTime

      public float getSmoothingTime()
    • setSmoothingTime

      public void setSmoothingTime(float smoothingTime)
    • weShouldSmooth

      public boolean weShouldSmooth()
      Whether or not to smooth the GPS signal. True=smooth, False=don't
      Returns:
      true=smooth signal, false=don't smooth signal
    • setSmoothingFlag

      public void setSmoothingFlag(boolean smoothingFlag)
      Set whether to smooth GPS signal or not. True = smooth, False=don't
      Parameters:
      smoothingFlag -
    • getParameterSet

      public PamParameterSet getParameterSet()
      Description copied from interface: ManagedParameters
      Get a set of data that describes all of the parameters in a class
      Specified by:
      getParameterSet in interface ManagedParameters
      Returns:
      description of the parameters in a class.