MCPcopy Create free account
hub / github.com/br3ttb/Arduino-PID-Library / Initialize

Method Initialize

PID_v1.cpp:189–195  ·  view source on GitHub ↗

Initialize()**************************************************************** * does all the things that need to happen to ensure a bumpless transfer * from manual to automatic mode. ******************************************************************************/

Source from the content-addressed store, hash-verified

187 * from manual to automatic mode.
188 ******************************************************************************/
189void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected