Quote:
Originally Posted by chesterm
We have noticed the loss of counts also. In our case it appears to do well when speed is at 50% or less. Going above that led to increasing loss of counts. We are planning on a home switch to re-zero counts every time our tilt returns to the up position. Haven't tested it yet, but I expect it to work out ok.
|
I wonder if the frequency of checking might be the problem. 20 RPM free speed is 1/3 rev/s with 175 pulses per rev = ~60 pulses per second. If your frequency of checking is any less than that you'll probably miss counts. Not sure how your program is checking but if you have other calculations happening at the same time it might be part of the problem. Keep in mind I don't have much knowledge of FRC code. Best solution in that case is just the mentioned zero each cycle or count separately on an Arduino or the like.