Offset correction in a digital integrator for rotating coils measurements