***************************************************************************\ PID Function
This program has been written by the Technical Support Staff at Z-World in response to several customer requests. As such, it has NOT had the testing and validation procedures which our "standard" software products have. It is being made available as a sample. There is no warranty, implied or otherwise.
The PID (Proportional Integral Derivative) function is used in mainly control applications. PIDCalc performs one iteration of the PID algorithm.
While the PID function works, main is just a dummy program showing a typical usage. \***************************************************************************/
typedef struct PID { double SetPoint; // Desired Value