7 Control Functions

Function

Description

PIDInit

Clears the delay line elements in the 3-element array located in Y-Data space and pointed to by controlHistory. It also clears the current PID output element, controlOutput.

PIDCoeffCalc

PIDCoeffCalc computes the PID coefficients based on values of Kp, Ki and Kd provided by the user.

PID

Computes the controlOutput element of the structure tPID.