Aaron Berk
/
PID_HelloWorld
Proportional, integral, derivative controller example.
Revision 1:c48bef0d5d3c, committed 2010-11-27
- Comitter:
- aberk
- Date:
- Sat Nov 27 11:32:13 2010 +0000
- Parent:
- 0:85367d3ee779
- Commit message:
- Changed the method call from controller.getRealOuput() to controller.compute() to reflect changes in the library API.
Changed in this revision
diff -r 85367d3ee779 -r c48bef0d5d3c PID.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PID.lib Sat Nov 27 11:32:13 2010 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/aberk/code/PID/#6e12a3e5af19
diff -r 85367d3ee779 -r c48bef0d5d3c PID_lib.lib --- a/PID_lib.lib Tue Aug 03 09:09:03 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/aberk/programs/PID_lib/latest \ No newline at end of file
diff -r 85367d3ee779 -r c48bef0d5d3c main.cpp --- 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); }