DP

Dependencies:   FastAnalogIn mbed-rtos mbed

Revision:
0:f3b355df6f26
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/control.h	Sun Apr 26 13:14:02 2015 +0000
@@ -0,0 +1,23 @@
+#ifndef _CONTROL_H
+#define _CONTROL_H
+
+#include "mbed.h"
+class cControl {
+    public:
+        
+        /* Constructor */
+        cControl();
+        
+        /* This method compute required current and save it to shared resource */        
+        void setCurrent();
+    
+    private: 
+        /* State feedback constants */
+        float K[4];
+        
+        float q[3];
+        float e[3];
+        float u_old;
+
+};
+#endif
\ No newline at end of file