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

PID Library

SetControllerDirection()

Description

If my Input is above Setpoint, should the output be increased or decreased? Depending on what the PID is connected to, either could be true. With a car, the output should be decreased to bring the speed down. For a refrigerator, the opposite is true. The output (cooling) needs to be increased to bring my temperature down.

This function specifies which type of process the PID is connected to. This information is also specified when the PID constructed. Since it's unlikely that the process will switch from direct to reverse, it's equally unlikely that anyone will actually use this function.

Syntax

SetControllerDirection(Direction);

Parameters

Direction: DIRECT (like a car) or REVERSE (like a refrigerator)

Returns

None