added quadrature encoder with calibration procedure