I am working on a project where I have to use two stepper motors. I need to do error detection so that I can correct it. Lets say that I want to rotate part of a machine x amount of degrees but it rotates a little more than X due to rotational inertia. How do I detect this kind of error so that I can correct it?