1.1.3.4.22 DRV_METROLOGY_GetCalibrationReferences Function

C

DRV_METROLOGY_CALIBRATION_REFS * DRV_METROLOGY_GetCalibrationReferences (void);

Summary

Get the pointer to the calibration references used in the internal calibration process of the metrology library.

Description

These internal calibration values are used to obtain the RMS values correctly. They also includes the result of the calibration process to be checked by the main application.

Parameters

None.

Returns

Pointer to the calibration references to be used in the next calibration process.

Example

    void APP_METROLOGY_StartCalibration(APP_METROLOGY_CALIBRATION * calibration)
    {
        DRV_METROLOGY_CALIBRATION_REFS * pCalibrationRefs;
    
        pCalibrationRefs = DRV_METROLOGY_GetCalibrationReferences();
        pCalibrationRefs->aimIA = calibration->aimIA;
        pCalibrationRefs->aimVA = calibration->aimVA;
        pCalibrationRefs->angleA = calibration->angleA;
        pCalibrationRefs->aimIB = calibration->aimIB;
        pCalibrationRefs->aimVB = calibration->aimVB;
        pCalibrationRefs->angleB = calibration->angleB;
        pCalibrationRefs->aimIC = calibration->aimIC;
        pCalibrationRefs->aimVC = calibration->aimVC;
        pCalibrationRefs->angleC = calibration->angleC;
        pCalibrationRefs->lineId = calibration->lineId;
    
        app_metrologyData.state = APP_METROLOGY_STATE_CHECK_CALIBRATION;
        DRV_METROLOGY_StartCalibration();
    }

Remarks

None.