Quote:
Originally Posted by Ether
Kevin,
If he's getting good counts with that sensor, all he has to do is change the getPeriod() FPGA sample averaging ring buffer from the default value of "1" to "6".
For Java and C++, this requires making a small change to the WPILib code.
http://www.chiefdelphi.com/forums/sh...7&postcount=24
|
I thought there was something like that, was just leery to suggest it because the period between each of the 6 pulses would likely be a bit different. Though I suppose it works out with a buffer of 6, as it'd have a full revolution of pulses, so physical variance between the pulses should cancel out.
tomy,
You other other option is doing as Ether suggests and changing the averaging ring buffer for the counter, then using 10/counter.GetPeriod() as your feedback RPMs.