Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of PID by
Revision 2:ee6bcde54713, committed 2016-04-24
- Comitter:
- vsutardja
- Date:
- Sun Apr 24 23:58:16 2016 +0000
- Parent:
- 1:f61c47297c2c
- Commit message:
- getsetpoint;
Changed in this revision
PID.cpp | Show annotated file Show diff for this revision Revisions of this file |
PID.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r f61c47297c2c -r ee6bcde54713 PID.cpp --- a/PID.cpp Wed Apr 20 21:27:43 2016 +0000 +++ b/PID.cpp Sun Apr 24 23:58:16 2016 +0000 @@ -323,3 +323,9 @@ return dParam_; } + +float PID::getSetPoint() { + + return setPoint_; + +}
diff -r f61c47297c2c -r ee6bcde54713 PID.h --- a/PID.h Wed Apr 20 21:27:43 2016 +0000 +++ b/PID.h Sun Apr 24 23:58:16 2016 +0000 @@ -163,6 +163,7 @@ float getPParam(); float getIParam(); float getDParam(); + float getSetPoint(); private: