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:
- 37:6602655a80f4
- Parent:
- 35:51914ac2d7f4
- Child:
- 38:3ff3cdb8740d
--- 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