Class AngleCalibration

java.lang.Object
angleMeasurement.AngleCalibration

public class AngleCalibration extends Object
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.
Author:
Douglas Gillespie
  • 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)