Package targetMotionModule
Class EventRotator
java.lang.Object
targetMotionModule.AbstractTargetMotionInformation
targetMotionModule.EventRotator
- All Implemented Interfaces:
TargetMotionInformation
Deprecated.
Class to rotate and transform an event so that it's track lies as close
as possible to the x axis.
Step 1 is to convert all units to metres, relative to the origin coordinate of the first sub detection
Step 2 is to fit a straight line through all the origin points
Step 3 is to rotate all position and angle vectors so that they correspond to a track as close as possible to the x axis.
Step 1 is to convert all units to metres, relative to the origin coordinate of the first sub detection
Step 2 is to fit a straight line through all the origin points
Step 3 is to rotate all position and angle vectors so that they correspond to a track as close as possible to the x axis.
- Author:
- Doug Gillespie Deprecated. Not used and will probably fall over with system whereby sub detection info is present, but not all sub detections are.
-
Constructor Summary
ConstructorsConstructorDescriptionEventRotator
(ArrayList<PamDataUnit> pamDetections, PamDataBlock pamDataBlock) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionlong
Deprecated.double
Deprecated.The 'a' parameter of a straight line fit through the coordinates before they were rotated (y = a + bx);double
Deprecated.The 'b' parameter of a straight line fit through the coordinates before they were rotated (y = a + bx);int
Deprecated.Deprecated.Deprecated.The LatLong of the coordinate frame origin.double
Deprecated.the reference angle for the straight line track (i.e.int
Deprecated.double[]
Deprecated.Get an array of rotated array angles at each point in the Cartesian coordinate frame (i.e.Deprecated.Array headings at each point in Cartesian coordinate frame rotated to be close to x axis.Deprecated.Sub detection origins, rotated to lie close to the x axis.PamVector[][]
Deprecated.Get rotated world vectors - vectors rotated with other data to lie along the x axis.Deprecated.Unit vectors giving the heading of the array at each sub detection in Cartesian coordinate frame.Deprecated.Sub detection origins, in m E and N of the first one.PamVector[][]
Deprecated.Get vectors transformed into real world Co-Ordinates, i.e.latLongToMetres
(LatLong ll, boolean rotate) Deprecated.metresToLatLong
(PamVector pt, boolean isRotated) Deprecated.long
metresToTime
(PamVector pt, boolean isRotated) Deprecated.From a position, work out what time that position was passed.Methods inherited from class targetMotionModule.AbstractTargetMotionInformation
calcDetectionOrigins, calcHydrophonePositions, calculateTimeDelayErrors, calculateTimeDelays, calculateWorldVectors, checkStreamers, getBeamLatLong, getBeamTime, getCurrentDetections, getEulerAngles, getGPSReference, getHeadingVectors, getHydrophonePos, getNDetections, getObserverThread, getOrigins, getTimeDelayErrors, getTimeDelays, getTimeMillis, latLongToMetres, metresToLatLong, setObserverThread
-
Constructor Details
-
Method Details
-
latLongToMetres
Deprecated. -
metresToLatLong
Deprecated. -
metresToTime
Deprecated.From a position, work out what time that position was passed.- Parameters:
pt
-isRotated
-- Returns:
- time in milliseconds.
-
getPamDetections
Deprecated.- Returns:
- the pamDetection
-
getLastUpdateTime
public long getLastUpdateTime()Deprecated.- Returns:
- the lastUpdateTime
-
getSubDetectionOrigins
Deprecated.Sub detection origins, in m E and N of the first one.
These values have NOT been rotated.- Returns:
- the subDetectionOrigins
-
getSubDetectionHeadings
Deprecated.Unit vectors giving the heading of the array at each sub detection in Cartesian coordinate frame.
These are NOT rotated- Returns:
- the subDetectionHeadings
-
getRotatedOrigins
Deprecated.Sub detection origins, rotated to lie close to the x axis.- Returns:
- the rotatedOrigins
-
getnSubDetections
public int getnSubDetections()Deprecated.- Returns:
- the number of sub detections (i.e. the number of points to expect in each of the vector arrays)
-
getPlotOrigin
Deprecated.The LatLong of the coordinate frame origin. This should be the LatLong of the first sub detection in the event.- Returns:
- the plotOrigin
-
getLinFitA
public double getLinFitA()Deprecated.The 'a' parameter of a straight line fit through the coordinates before they were rotated (y = a + bx);- Returns:
- the linFitA
-
getLinFitB
public double getLinFitB()Deprecated.The 'b' parameter of a straight line fit through the coordinates before they were rotated (y = a + bx);- Returns:
- the linFitB
-
getReferenceAngle
public double getReferenceAngle()Deprecated.the reference angle for the straight line track (i.e. the getLinfitB() turned into an angle). This angle is in the Cartesian coordinate frame (i.e. anti clockwise from x axis).- Returns:
- the referenceAngle
-
getRotatedArrayAngles
public double[] getRotatedArrayAngles()Deprecated.Get an array of rotated array angles at each point in the Cartesian coordinate frame (i.e. anti clockwise from x axis).- Returns:
- the arrayAngles
-
getRotatedHeadings
Deprecated.Array headings at each point in Cartesian coordinate frame rotated to be close to x axis.- Returns:
- the rotatedHeadings
-
getRotatedWorldVectors
Deprecated.Get rotated world vectors - vectors rotated with other data to lie along the x axis.- Returns:
-
getWorldVectors
Deprecated.Get vectors transformed into real world Co-Ordinates, i.e. relative to N and E rather than the array axis.- Specified by:
getWorldVectors
in interfaceTargetMotionInformation
- Overrides:
getWorldVectors
in classAbstractTargetMotionInformation
- Returns:
-
getReferenceHydrophones
public int getReferenceHydrophones()Deprecated.- Specified by:
getReferenceHydrophones
in interfaceTargetMotionInformation
- Overrides:
getReferenceHydrophones
in classAbstractTargetMotionInformation
- Returns:
- bitmap of hydrophones used in the event rotator
-