Quote:
Originally Posted by Kevin Sevcik
You seem to be in a sort of no-man's land here with that setup. You should be getting 6 counts per revolution like that. That's not enough counts per second to do any reasonable speed control. On the other hand, it's probably too many counts per second to use 60/counter.GetPeriod() to give you an RPM to control. You can try this method, but I don't think it'll be super stable for your current sensor setup.
...
The whole idea here is that you only want one pulse per revolution of the wheel.
|
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