Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

PID Library

Compute()

Description

Contains the pid algorithm. it should be called once every loop(). Most of the time it will just return without doing anything. At a frequency specified by SetSampleTime it will calculate a new Output.

Syntax

Compute()

Parameters

None

Returns

True: when the output is computed
False: when nothing has been done