Package GPS
Class GPSParameters
java.lang.Object
GPS.GPSParameters
- All Implemented Interfaces:
Serializable
,Cloneable
,ManagedParameters
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionboolean
double
Minimum course change for a dynamic readdouble
distance from bow to antennadouble
distance from antenna to sterndouble
distance from port side to antennadouble
distance from antenna to starboard sideboolean
GPS HEading SmoothingString for true headingint
position of data in headingStringint
Which strings to readboolean
On the map, work out where the ship will be and draw an arrow to that pointint
time for prediction arrow (seconds)static final int
Read everythingstatic final int
Read on a fixed time interval or when course or speed changestatic final int
static final int
static final int
Read on a fixed time intervalboolean
int
Interval between reads in secondsboolean
Attempt to read true heading informationint
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.String initialsstatic final long
boolean
double
Minimum speed change for a dynamic read -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Get a set of data that describes all of the parameters in a classfloat
void
setSmoothingFlag
(boolean smoothingFlag) Set whether to smooth GPS signal or not.void
setSmoothingTime
(float smoothingTime) boolean
Whether or not to smooth the GPS signal.
-
Field Details
-
serialVersionUID
public static final long serialVersionUID- See Also:
-
setClockOnStartup
public boolean setClockOnStartup -
dimA
public double dimAdistance from bow to antenna -
dimB
public double dimBdistance from antenna to stern -
dimC
public double dimCdistance from port side to antenna -
dimD
public double dimDdistance from antenna to starboard side -
plotPredictedPosition
public boolean plotPredictedPositionOn the map, work out where the ship will be and draw an arrow to that point -
predictionTime
public int predictionTimetime for prediction arrow (seconds) -
readHeading
public boolean readHeading -
headingNMEASource
-
READ_GGA
public static final int READ_GGA- See Also:
-
READ_RMC
public static final int READ_RMC- See Also:
-
mainString
public int mainStringWhich strings to read -
rmcInitials
String initials -
ggaInitials
-
allowWildcard
public boolean allowWildcard -
readTrueHeading
public boolean readTrueHeadingAttempt to read true heading information -
headingString
String for true heading -
headingStringPos
public int headingStringPosposition of data in headingString -
headingSmoothing
public boolean headingSmoothingGPS HEading Smoothing -
readType
public int readTypestorage 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_ALLRead everything- See Also:
-
READ_TIMER
public static final int READ_TIMERRead on a fixed time interval- See Also:
-
READ_DYNAMIC
public static final int READ_DYNAMICRead on a fixed time interval or when course or speed change- See Also:
-
readInterval
public int readIntervalInterval between reads in seconds -
courseInterval
public double courseIntervalMinimum course change for a dynamic read -
speedInterval
public double speedIntervalMinimum speed change for a dynamic read
-
-
Constructor Details
-
GPSParameters
public GPSParameters()
-
-
Method Details
-
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
Description copied from interface:ManagedParameters
Get a set of data that describes all of the parameters in a class- Specified by:
getParameterSet
in interfaceManagedParameters
- Returns:
- description of the parameters in a class.
-