Package ArrayAccelerometer
Class ArrayAccelDataUnit
java.lang.Object
PamguardMVC.PamDataUnit
ArrayAccelerometer.ArrayAccelDataUnit
- All Implemented Interfaces:
ArraySensorDataUnit
,Comparable
-
Constructor Summary
ConstructorDescriptionArrayAccelDataUnit
(long timeMilliseconds, ArrayAccelControl accelControl, Double[] voltsRead, Double[] accel) -
Method Summary
Modifier and TypeMethodDescriptionDouble[]
getAcceleration
(int dim) getField
(int streamer, ArraySensorFieldType fieldType) Get a value for a specified field for a specified streamer.getPitch()
return the pitch in degrees.getRoll()
Double[]
Methods inherited from class PamguardMVC.PamDataUnit
addDataAnnotation, addSuperDetection, amplifyMeasuredAmplitudeByDB, amplifyMeasuredAmplitudeByLinear, calcSnapshotGeometry, clearOandAngles, clearUpdateCount, compareTo, findDataAnnotation, findDataAnnotation, freeData, getAbsBlockIndex, getAmplitudeDB, getAnnotationsSummaryString, getBasicData, getCalculatedAmlitudeDB, getChannelBitmap, getColourIndex, getDataAnnotation, getDatabaseIndex, getDatabaseUpdateOf, getDataUnitFileInformation, getDataUnitPopupMenu, getDurationInMilliseconds, getEndTimeInMilliseconds, getFrequency, getFrequencyOverlap, getHydrophoneBitmap, getHydrophoneHeading, getLastChangeTime, getLastSample, getLastUpdateTime, getLocalisation, getMeasuredAmplitude, getMeasuredAmplitudeType, getNoiseBackground, getNumDataAnnotations, getOriginLatLong, getParentDataBlock, getSampleDuration, getSampleDurationAsInt, getSeconds, getSequenceBitmap, getSequenceBitmapObject, getSignalExcess, getSignalSPL, getSnapshotGeometry, getStartSample, getSummaryString, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetection, getSuperDetectionsCount, getSuperDetectionSyncronisation, getSuperId, getTimeDelaysSeconds, getTimeMilliseconds, getTimeNanoseconds, getTimeOverlap, getUID, getUpdateCount, isEmbryonic, isForceAmpRecalc, linAmplitudeToDB, removeDataAnnotation, removeDataAnnotation, removeSuperDetection, setAbsBlockIndex, setCalculatedAmlitudeDB, setChannelBitmap, setDatabaseIndex, setDatabaseUpdateOf, setDataUnitFileInformation, setDurationInMilliseconds, setEmbryonic, setForceAmpRecalc, setFrequency, setInfo, setLastUpdateTime, setLocalisation, setMeasuredAmpAndType, setMeasuredAmplitude, setMeasuredAmplitudeType, setNoiseBackground, setParentDataBlock, setSampleDuration, setSequenceBitmap, setSignalExcess, setSignalSPL, setSnapshotGeometry, setStartSample, setTimeDelaysSeconds, setTimeMilliseconds, setUID, setUniqueSuperDetection, sortOutputMaps, updateDataUnit
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface Array.sensors.ArraySensorDataUnit
getTimeMilliseconds
-
Constructor Details
-
ArrayAccelDataUnit
public ArrayAccelDataUnit(long timeMilliseconds, ArrayAccelControl accelControl, Double[] voltsRead, Double[] accel)
-
-
Method Details
-
getVoltsRead
- Returns:
- the voltsRead
-
getAcceleration
- Returns:
- the acceleration
-
getAcceleration
- Parameters:
dim
- dimension, 0, 1 or 2.- Returns:
- the acceleration for a given dimension
-
getRoll
- Returns:
- the roll in degrees.
-
getPitch
return the pitch in degrees.- Returns:
- pitch in degrees.
-
getField
Description copied from interface:ArraySensorDataUnit
Get a value for a specified field for a specified streamer.- Specified by:
getField
in interfaceArraySensorDataUnit
- Parameters:
streamer
- streamer indexfieldType
- Depth, heading, pitch or roll.- Returns:
- Value in metres or degrees (not radians)
-