Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: global.h
- 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