dsf

Dependencies:   BLE_API mbed nRF51822

Revision:
0:b5906c81772b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Controller.hpp	Sun Feb 05 16:31:58 2017 +0000
@@ -0,0 +1,22 @@
+#ifndef CONTROLLER_H
+#define CONTROLLER_H
+
+#include "ControllerParams.hpp"
+
+using namespace std;
+
+class Controller {
+    protected:  
+        float ref;
+        float out;
+
+    public:
+        virtual float calculateCmd(void) const = 0;
+        virtual void updateParams(ControllerParams&) = 0;
+        virtual ~Controller();  
+    
+        void updateRef(float);  
+        void updateOut(float);  
+};
+
+#endif