Package angleMeasurement
Class AngleMeasurement
java.lang.Object
angleMeasurement.AngleMeasurement
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
- Direct Known Subclasses:
FluxgateWorldAngles
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMeasurementListener
(AngleMeasurementListener angleMeasurementListener) double
double
getCalibratedAngle
(double rawAngle) Converts a raw angle into a calibrated angle.abstract Double
getName()
abstract Double
void
removeMeasurementListener
(AngleMeasurementListener angleMeasurementListener) void
setAngleOffset
(double angleOffset) void
setAngleParameters
(AngleParameters angleParameters) void
setCalibrationData
(double[] calibrationData) void
abstract boolean
void
Sets up the angle calibration.abstract void
setZero()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface PamController.PamSettings
getSettingsReference, getSettingsVersion, restoreSettings
-
Constructor Details
-
AngleMeasurement
-
-
Method Details
-
getRawAngle
-
getCalibratedAngle
-
getCorrectedAngle
-
setZero
public abstract void setZero() -
settings
-
getAngleOffset
public double getAngleOffset() -
setAngleOffset
public void setAngleOffset(double angleOffset) -
getName
-
setName
-
getUnitName
- Specified by:
getUnitName
in interfaceSettingsNameProvider
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
getAngleParameters
-
setAngleParameters
-
addMeasurementListener
-
removeMeasurementListener
-
setCalibrationData
public void setCalibrationData(double[] calibrationData) -
setupCalibration
public void setupCalibration()Sets up the angle calibration. Most angle measurement devices wil just use it as is, but some may be able to extract the data from it and upload them to the external device. -
getCalibratedAngle
public double getCalibratedAngle(double rawAngle) Converts a raw angle into a calibrated angle.
Most angle measurement devices wil just use it as is, but some may be able to extract the data from it and upload them to the external device, in which case developer will probably want to override this function so that it doesn't do anything (just returns the rawAngle)- Parameters:
rawAngle
- uncalibrated angle- Returns:
- calibrated angle
-