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
Diff: PID.cpp
- Revision:
- 3:34f4f22b18e7
- Parent:
- 2:14176355508a
- Child:
- 4:a3c85727f0f6
- Child:
- 5:3519920d064d
--- a/PID.cpp Tue Jul 21 08:12:24 2015 +0000
+++ b/PID.cpp Tue Aug 18 04:45:10 2015 +0000
@@ -78,6 +78,15 @@
timer.stop();
T.detach();
}
+
+void PID::Reset()
+{
+ dTarget=0;
+ dPoint=0;
+ // PI制御ゲイン
+ data=0;
+ s_dErrIntg=0 ,dErr_prev=0;
+}
void PID::PIDctrl()
{
double dErr;
