PID.init

Name
PID.init

Description

 * void PID.init ( double* Input, double* Output, double* Setpoint, double Kp, double Ki, double Kd, int ControllerDirection )
 * Creates a PID controller linked to the specified Input, Output, and Setpoint. The PID algorithm is in parallel form.

Syntax
PID.init( &Input, &Output, &Setpoint, Kp, Ki, Kd, Direction );


 * Parameters
 * Input - The variable we're trying to control (double)
 * Output - The variable that will be adjusted by the pid (double)
 * Setpoint - The value we want to Input to maintain (double)
 * Kp, Ki, Kd - Tuning Parameters. these affect how the pid will chage the output. (double>=0)
 * Direction - Either DIRECT or REVERSE. determines which direction the output will move when faced with a given error. DIRECT is most common.


 * Returns/Output
 * None