*************************************************************** * Arduino PID Library - Version 1.2.1 * by Brett Beauregard <br3ttb@gmail.com> brettbeauregard.com * * This Library is licensed under the MIT License *************************************************************** - For an ultra-detailed explanation of why the code is the way it is, please visit: http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/ - For function documentation see: http://playground.arduino.cc/Code/PIDLibrary - To synchronize PID::Compute with an external timing source such as a TIMER ISR, call SetSampleTime() with an argument of zero. This will force Compute to generate a new output value each time it is called.