Quote:
Originally Posted by sanddrag
... there was a good bit of math and code involved...
|
If your sample time is fast and stable enough that the encoder could never turn 180 degrees from one sample to the next, then "all ya gotta do" at each sample is assume the encoder turned through the shortest angle, and keep track of zero crossings.