template for students for mirror actuator

Dependencies:   FastPWM

Revision:
0:d2e117716219
Child:
1:a7fc1afe0575
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Lib_Cntrl/PID_Cntrl.h	Sun May 02 19:32:30 2021 +0000
@@ -0,0 +1,27 @@
+#ifndef PID_CNTRL_H_
+#define PID_CNTRL_H_
+
+class PID_Cntrl
+{
+public:
+
+    PID_Cntrl(float P, float I, float D, float tau_f, float Ts, float uMin, float uMax);
+    PID_Cntrl() {};
+
+    float operator()(float e)
+    {
+        return update(e);
+    }
+
+    virtual ~PID_Cntrl();
+
+    void    reset(float initValue);
+    void    setCoefficients(float P, float I, float D, float tau_f, float Ts, float uMin, float uMax);
+    float   update(float e);
+
+private:
+
+
+};
+
+#endif
\ No newline at end of file