Proportional, integral, derivative controller example.

Dependencies:   mbed PID

Revision:
1:c48bef0d5d3c
Parent:
0:85367d3ee779
--- a/main.cpp	Tue Aug 03 09:09:03 2010 +0000
+++ b/main.cpp	Sat Nov 27 11:32:13 2010 +0000
@@ -23,7 +23,7 @@
     //Update the process variable.
     controller.setProcessValue(pv.read());
     //Set the new output.
-    co = controller.getRealOutput();
+    co = controller.compute();
     //Wait for another loop calculation.
     wait(RATE);
   }