Class FrameBodyMagneticFluxDensity
java.lang.Object
com.irurueta.navigation.inertial.calibration.FrameBodyMagneticFluxDensity
- All Implemented Interfaces:
Serializable
,Cloneable
- Direct Known Subclasses:
StandardDeviationFrameBodyMagneticFluxDensity
Contains a body magnetic flux density along with the corresponding frame
(position, orientation and velocity) where the measurement was made.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.irurueta.navigation.frames.ECEFFrame
Contains current body position, velocity (which will typically be zero) and orientation resolved around ECEF axes.private BodyMagneticFluxDensity
Current body magnetic flux density.private static final long
Serialization version.private double
Contains year expressed in decimal format. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.FrameBodyMagneticFluxDensity
(double year) Constructor.FrameBodyMagneticFluxDensity
(com.irurueta.navigation.frames.ECEFFrame frame) Constructor.FrameBodyMagneticFluxDensity
(com.irurueta.navigation.frames.ECEFFrame frame, double year) Constructor.FrameBodyMagneticFluxDensity
(com.irurueta.navigation.frames.ECEFFrame frame, Date time) Constructor.FrameBodyMagneticFluxDensity
(com.irurueta.navigation.frames.ECEFFrame frame, GregorianCalendar calendar) Constructor.FrameBodyMagneticFluxDensity
(com.irurueta.navigation.frames.NEDFrame frame) Constructor.FrameBodyMagneticFluxDensity
(com.irurueta.navigation.frames.NEDFrame frame, double year) Constructor.FrameBodyMagneticFluxDensity
(com.irurueta.navigation.frames.NEDFrame frame, Date time) Constructor.FrameBodyMagneticFluxDensity
(com.irurueta.navigation.frames.NEDFrame frame, GregorianCalendar calendar) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, double year) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, com.irurueta.navigation.frames.ECEFFrame frame) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, com.irurueta.navigation.frames.ECEFFrame frame, double year) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, com.irurueta.navigation.frames.ECEFFrame frame, Date time) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, com.irurueta.navigation.frames.ECEFFrame frame, GregorianCalendar calendar) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, com.irurueta.navigation.frames.NEDFrame frame) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, com.irurueta.navigation.frames.NEDFrame frame, double year) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, com.irurueta.navigation.frames.NEDFrame frame, Date time) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, com.irurueta.navigation.frames.NEDFrame frame, GregorianCalendar calendar) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, Date time) Constructor.FrameBodyMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity, GregorianCalendar calendar) Constructor.Constructor.Constructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Object
clone()
Makes a copy of this instance.static double
convertTime
(Date date) Converts a time instant contained ina date object to a decimal year.static double
convertTime
(GregorianCalendar calendar) Converts a time instant contained in a gregorian calendar to a decimal year.void
Copies data of provided instance into this instance.void
copyTo
(FrameBodyMagneticFluxDensity output) Copies this instance data into provided instance.boolean
Checks if provided instance has exactly the same contents as this instance.boolean
equals
(FrameBodyMagneticFluxDensity other, double threshold) Checks if provided instance has contents similar to this instance up to provided threshold value.boolean
Checks if provided object is a FrameBodyMagneticFluxDensity instance having exactly the same contents as this instance.com.irurueta.navigation.frames.ECEFFrame
getFrame()
Gets current body position (which will typically remain constant), velocity(which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around ECEF axes associated to body magnetic flux density measurement.Gets current body magnetic flux density.com.irurueta.navigation.frames.NEDFrame
Gets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to body magnetic flux density measurement.boolean
getNedFrame
(com.irurueta.navigation.frames.NEDFrame result) Gets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to body magnetic flux density measurement.double
getYear()
Gets year expressed in decimal format.int
hashCode()
Computes and returns hash code for this instance.void
setFrame
(com.irurueta.navigation.frames.ECEFFrame frame) Sets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around ECEF axes associated to body magnetic flux density measurement.void
setMagneticFluxDensity
(BodyMagneticFluxDensity magneticFluxDensity) Sets current body magnetic flux density.void
setNedFrame
(com.irurueta.navigation.frames.NEDFrame nedFrame) Sets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to body magnetic flux density measurement.void
Sets decimal year from provided date instance.void
setTime
(GregorianCalendar calendar) Sets decimal year from provided calendar instance.void
setYear
(double year) Sets year expressed in decimal format.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version. This is used to ensure compatibility of deserialization of permanently stored serialized instances.- See Also:
-
magneticFluxDensity
Current body magnetic flux density. Contains magnetometer measurements. -
frame
private com.irurueta.navigation.frames.ECEFFrame frameContains current body position, velocity (which will typically be zero) and orientation resolved around ECEF axes. -
year
private double yearContains year expressed in decimal format.
-
-
Constructor Details
-
FrameBodyMagneticFluxDensity
public FrameBodyMagneticFluxDensity()Constructor. -
FrameBodyMagneticFluxDensity
public FrameBodyMagneticFluxDensity(double year) Constructor.- Parameters:
year
- time expressed as decimal year.
-
FrameBodyMagneticFluxDensity
Constructor.- Parameters:
time
- a timestamp.
-
FrameBodyMagneticFluxDensity
Constructor.- Parameters:
calendar
- calendar containing a timestamp.
-
-
Method Details
-
getMagneticFluxDensity
Gets current body magnetic flux density. Contains magnetometer measurements.- Returns:
- current body magnetic flux density.
-
getFrame
public com.irurueta.navigation.frames.ECEFFrame getFrame()Gets current body position (which will typically remain constant), velocity(which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around ECEF axes associated to body magnetic flux density measurement.- Returns:
- current ECEF frame associated to body magnetic flux density measurement or null if not available.
-
getNedFrame
public com.irurueta.navigation.frames.NEDFrame getNedFrame()Gets current body position (which will typically remain constant), velocity (which will typically be zero) and orientation (which usually changes with each measurement to perform calibration of a single device) resolved around NED axes associated to body magnetic flux density measurement.- Returns:
- current NED frame associated to body magnetic flux density measurement or null if not available.
-
getYear
public double getYear()Gets year expressed in decimal format.- Returns:
- year expressed in decimal format.
-
setYear
public void setYear(double year) Sets year expressed in decimal format.- Parameters:
year
- year expressed in decimal format.
-
setTime
Sets decimal year from provided date instance.- Parameters:
date
- a date instance containing a timestamp.
-
setTime
Sets decimal year from provided calendar instance.- Parameters:
calendar
- a calendar instance containing a timestamp.
-
convertTime
Converts a time instant contained ina date object to a decimal year.- Parameters:
date
- a time instance to be converted.- Returns:
- converted value expressed in decimal years.
-
convertTime
Converts a time instant contained in a gregorian calendar to a decimal year.- Parameters:
calendar
- calendar containing a specific instant to be converted.- Returns:
- converted value expressed in decimal years.
-
hashCode
public int hashCode()Computes and returns hash code for this instance. Hash codes are almost unique values that are useful for fast classification and storage of objects in collections. -
equals
Checks if provided object is a FrameBodyMagneticFluxDensity instance having exactly the same contents as this instance. -
clone
Makes a copy of this instance.- Overrides:
clone
in classObject
- Returns:
- a copy of this instance.
- Throws:
CloneNotSupportedException
- if clone fails for some reason.
-