Class IMUMethod
java.lang.Object
videoRangePanel.vrmethods.AbstractVRMethod
videoRangePanel.vrmethods.IMUMethod.IMUMethod
- All Implemented Interfaces:
 VRMethod
Uses sensor information, heading, pitch and roll, plus GPS co-ordinates and height to calculated the position of an animal. Also needs calibration data.
 Note-Sensor convention
  
Bearing- 0==north, 90==east 180=south, 270==west
Pitch- 90=-g, 0=0g, -90=g
Tilt 0->180 -camera turning towards left to upside down 0->-180 camera turning right to upside down
All angles are in RADIANS.
- Author:
 - Jamie Macaulay
 
- 
Field Summary
Fields inherited from class videoRangePanel.vrmethods.AbstractVRMethod
candidateMeasurement, horizonPoint1, horizonPoint2, horizonTilt, imageHeading, MEASURE_ANIMAL, MEASURE_DONE, vrControl - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidClears all user interactions and resets overlay.intGet the current status.getName()The name of this type of analysis method.The AWT overlay.The FX overlay.longprotected voidmeasureAnimal(Point imPoint) static AngleDataUnitsearchIMUDataBlock(IMUDataBlock imuDataBlock, long timeMillis, long searchInterval) Search the datablock for angle data.voidupdate(int updateType) Called from other parts of the module whenever a method panel may needed updated e.g.Methods inherited from class videoRangePanel.vrmethods.AbstractVRMethod
bearingTox, calcLocLatLong, calculateHorizonTilt, clearPoints, getCandidateMeasurement, getGPSinfo, getGPSinfo, getHorizonPixel, getHorizonPixel_H, getHorizonTilt, getImageHeading, getImagePitch, newAnimalMeasurement_Horizon, setHorizonTilt 
- 
Constructor Details
- 
IMUMethod
 
 - 
 - 
Method Details
- 
getName
Description copied from interface:VRMethodThe name of this type of analysis method.- Returns:
 - the name of the method
 
 - 
getSidePanel
 - 
measureAnimal
 - 
clearOverlay
public void clearOverlay()Description copied from interface:VRMethodClears all user interactions and resets overlay. Required for changes to settings, picture being changed and other interactions not directly associated with the VRMethod. - 
getRibbonPanel
 - 
update
public void update(int updateType) Description copied from interface:VRMethodCalled from other parts of the module whenever a method panel may needed updated e.g. when new calibration data is manually added in the settings dialog.- Specified by:
 updatein interfaceVRMethod- Overrides:
 updatein classAbstractVRMethod- Parameters:
 updateType- - the update flag.
 - 
searchIMUDataBlock
public static AngleDataUnit searchIMUDataBlock(IMUDataBlock imuDataBlock, long timeMillis, long searchInterval) Search the datablock for angle data.- Parameters:
 imuDataBlock- - the current IMU datablocktimeMillis- - the image timesearchInterval- - the interval to search for units between- Returns:
 - an AngledatUnit containing average values of units within the search window.
 
 - 
getSearchInterval
public long getSearchInterval() - 
getCurrentIMUData
 - 
getOverlayAWT
Description copied from interface:VRMethodThe AWT overlay. This handles all graphical interactions within AWT- Returns:
 - the awt overlay
 
 - 
getOverlayFX
Description copied from interface:VRMethodThe FX overlay. This handles all graphical interactions within JavaFX- Returns:
 - the awt overlay
 
 - 
getCurrentStatus
public int getCurrentStatus()Get the current status.- Returns:
 - the current status flag.
 
 
 -