This is some code I used a while back to implement a pid controller for keeping temperature at a setpoint. It's not meant for general use, but will give you a good idea of how pid works and how to implement it in code.
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.