Package angleMeasurement
Class AngleCalibration
java.lang.Object
angleMeasurement.AngleCalibration
Class to sort out angle calibration data.
As for the Fluxgate 3030 calibration it's set so that 0 measured will still give 0 after calibration and all other values are relative to that.
Since there may not be an actual calibration point at 0, the whole calibration table need to be offset so that the first point is at 0.
As for the Fluxgate 3030 calibration it's set so that 0 measured will still give 0 after calibration and all other values are relative to that.
Since there may not be an actual calibration point at 0, the whole calibration table need to be offset so that the first point is at 0.
- Author:
- Douglas Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getCalibratedAngle
(double measured) int
getClosestIndex
(double[] searchArray, double searchValue) double
double[]
double[]
double[]
double[]
double
void
setFitOrder
(int fitOrder) void
setMeasuredValues
(double[] measuredValues) void
setTrueValues
(double[] trueValues)
-
Constructor Details
-
AngleCalibration
public AngleCalibration(double[] trueValues, double[] measuredValues)
-
-
Method Details
-
getCalibratedAngle
public double getCalibratedAngle(double measured) -
getClosestIndex
public int getClosestIndex(double[] searchArray, double searchValue) -
getMeasuredValues
public double[] getMeasuredValues() -
setMeasuredValues
public void setMeasuredValues(double[] measuredValues) -
getTrueValues
public double[] getTrueValues() -
setTrueValues
public void setTrueValues(double[] trueValues) -
getSortedMeasuredValues
public double[] getSortedMeasuredValues() -
getSortedTrueValues
public double[] getSortedTrueValues() -
getMaxError
public double getMaxError() -
getZeroTrue
public double getZeroTrue() -
setFitOrder
public void setFitOrder(int fitOrder)
-