I am using an incremental encoder in my project. I want to read the values of the encoder, to get the number of revolution in the axis, from which iam planning to calculate the diatance travelled in the direction. Is my approach right? It is wrong can u suggest any alternative.