My boss asked me to write a PID class to control a motor today. No big deal, except that the deadline is tommorow evening. My calculus is rusty, and my vb6 is probably worse (which is the language I am to use). Anyone have a good understanding of a PID controller or better yet a working example (in vb6 would be a bonus, but just pseudocode would suffice). Thanks!!