Jorn Dokter / Mbed 2 deprecated TEB_branch2

Dependencies:   mbed QEI HIDScope biquadFilter MODSERIAL FastPWM

Revision:
30:161f748a1cce
Parent:
28:4a5671b3d88d
Child:
31:d1bd16a05148
--- a/global.h	Wed Oct 09 13:20:19 2019 +0000
+++ b/global.h	Wed Oct 09 13:40:50 2019 +0000
@@ -2,16 +2,23 @@
 #define global_h
 
 //Structures
-struct MotorData {
-    int a;
-    int b;
-    int c;
-    };
+struct motorReturnSub 
+{
+    int counts;
+    float angle;
+    float velocity;
+};
+struct motorReturn
+{
+    motorReturnSub motor1;
+    motorReturnSub motor2;
+    motorReturnSub motor3;
+};
     
     //Define global variables
     extern double X; //Input from EMG, signal X
     
     //Define structures
-    extern MotorData Motor1; 
+    extern motorReturn motorData; 
 
 #endif
\ No newline at end of file