Package GPS
Class GPSParameters
java.lang.Object
GPS.GPSParameters
- All Implemented Interfaces:
 Serializable,Cloneable,ManagedParameters
- See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionbooleandoubleMinimum course change for a dynamic readdoubledistance from bow to antennadoubledistance from antenna to sterndoubledistance from port side to antennadoubledistance from antenna to starboard sidebooleanGPS HEading SmoothingString for true headingintposition of data in headingStringintWhich strings to readprotected StringbooleanOn the map, work out where the ship will be and draw an arrow to that pointinttime for prediction arrow (seconds)static final intRead everythingstatic final intRead on a fixed time interval or when course or speed changestatic final intstatic final intstatic final intRead on a fixed time intervalbooleanintInterval between reads in secondsbooleanAttempt to read true heading informationintstorage 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 longbooleandoubleMinimum speed change for a dynamic read - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionclone()Get a set of data that describes all of the parameters in a classfloatvoidsetSmoothingFlag(boolean smoothingFlag) Set whether to smooth GPS signal or not.voidsetSmoothingTime(float smoothingTime) booleanWhether or not to smooth the GPS signal. 
- 
Field Details
- 
serialVersionUID
public static final long serialVersionUID- See Also:
 
 - 
setClockOnStartup
public boolean setClockOnStartup - 
nmeaSource
 - 
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:ManagedParametersGet a set of data that describes all of the parameters in a class- Specified by:
 getParameterSetin interfaceManagedParameters- Returns:
 - description of the parameters in a class.
 
 
 -