|
Re: Encoder counting randomly off by x4 factor
Just to reduce the number of variables, try putting in some code to toggle an otherwise unused output every time you compute the delta. Look at that output with a scope to see that you're actually doing it every 26.2 milliseconds. That'll help tell you where to focus your attention.
Look at the encoder output with the scope too, just to make sure that it stays consistent.
|