Initialize()**************************************************************** * does all the things that need to happen to ensure a bumpless transfer * from manual to automatic mode. ******************************************************************************/
| 187 | * from manual to automatic mode. |
| 188 | ******************************************************************************/ |
| 189 | void PID::Initialize() |
| 190 | { |
| 191 | outputSum = *myOutput; |
| 192 | lastInput = *myInput; |
| 193 | if(outputSum > outMax) outputSum = outMax; |
| 194 | else if(outputSum < outMin) outputSum = outMin; |
| 195 | } |
| 196 | |
| 197 | /* SetControllerDirection(...)************************************************* |
| 198 | * The PID will either be connected to a DIRECT acting process (+Output leads |
nothing calls this directly
no outgoing calls
no test coverage detected