Jorn Dokter / Mbed 2 deprecated TEB_branch2

Dependencies:   mbed QEI HIDScope biquadFilter MODSERIAL FastPWM

Revision:
37:6602655a80f4
Parent:
35:51914ac2d7f4
Child:
38:3ff3cdb8740d
diff -r 331907080ffb -r 6602655a80f4 global.h
--- a/global.h	Thu Oct 10 14:47:47 2019 +0000
+++ b/global.h	Thu Oct 10 15:33:24 2019 +0000
@@ -2,24 +2,37 @@
 #define global_h
 
     //Structuresv
-    struct motorReturnSub
+    struct motorDataOutputSub
     {
         int counts;
         float angle;
         float velocity;
     };
     
-    struct motorData
+    struct motorDataInputSub
+    {
+        float PWM;
+    };
+    
+    struct motorDataCombined
     {
-        motorReturnSub motor1;
-        motorReturnSub motor2;
-        motorReturnSub motor3;
+        motorDataOutputSub output;
+        motorDataInputSub input;
+    
+    };
+    
+    struct motorStruc
+    {
+        motorDataCombined motor1;
+        motorDataCombined motor2;
+        motorDataCombined motor3;
+        float dt;
     };
     
     //Define global variables
     extern double X; //Input from EMG, signal X
     
     //Define structures
-    extern motorData motorReturn; 
+    extern motorStruc motorData; 
 
 #endif
\ No newline at end of file