This link lays out three forms of PID control, including the differential form that calculates the change in output. Looking at it my first stab at it from memory needs to be corrected.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
This link lays out three forms of PID control, including the differential form that calculates the change in output. Looking at it my first stab at it from memory needs to be corrected.
http://bestune.50megs.com/typeABC.htm