|
Re: Consistent Encoder RPM Issues
Quote:
Originally Posted by meltbox360
Looks like a simple way to do it however I am wondering if anyone knows of a simple way in vxWorks of starting a thread that does some task every some miliseconds. iterativeRobot is a little late to switch to at the moment (I think). I know platforms like QNX can do this with timers. Perhaps it is not necessary but it is nice to ensure consistent performance.
|
There is a notifier class in wpilib that you can use. It spawns a new thread every few milliseconds. To reference the code it is used in the pidcontroller class.
__________________
Tanay Nathan
Programmer
Team #3256 Warriorborgs
|