Function computeCirculoEncoderCalibrationResult

  • Computes the Circulo encoder calibration result from position and phaseError arrays.

    Handles empty or mismatched inputs gracefully by returning null.

    Returns

    Calibration result or null if inputs are invalid or empty

    Parameters

    • position: undefined | number[]

      Array of encoder positions

    • phaseError: undefined | number[]

      Array of corresponding phase errors

    • maxPermissiblePhaseError: number

      Max permissible phase error of the measured ring, in encoder increments. The percentage is the measured phase error expressed against this limit, so the limit of another ring misreports the quality: a Circulo 9 ring scored against the Circulo 7 limit reads roughly twice the headroom it has. The limit comes back in the result.

    Returns CirculoEncoderCalibrationResult | null

Generated using TypeDoc