Jasper Gerth / controlandadjust

Dependents:   buttoncontrol includeair includeair Oudverslag

Revision:
0:041a12a5b315
Child:
1:ece12a295ce3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/controlandadjust.h	Tue Oct 06 10:58:04 2015 +0000
@@ -0,0 +1,21 @@
+#ifndef MBED_CONTROLANDADJUST_H
+#define MBED_CONTROLANDADJUST_H
+
+#include "mbed.h"
+#include <string>
+
+class controlandadjust
+{
+public:
+    controlandadjust();
+    void P(float error1, float error2 ,float Kp );
+    void PI(float error1, float error2, float Kp, float Ki,float Ts, float &error1_int, float &error2_int);
+    void PID(float error1, float error2, float Kp, float Ki,float Kd,float Ts,
+                                   float &error1_int, float &error2_int, float &error1_prev, float &error2_prev);
+
+private:
+   void verwerksignaal(float , float );
+   
+};
+
+#endif
\ No newline at end of file