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
global.h@30:161f748a1cce, 2019-10-09 (annotated)
- Committer:
- JordanO
- Date:
- Wed Oct 09 13:40:50 2019 +0000
- Revision:
- 30:161f748a1cce
- Parent:
- 28:4a5671b3d88d
- Child:
- 31:d1bd16a05148
scribbling
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JornD | 28:4a5671b3d88d | 1 | #ifndef global_h |
JornD | 28:4a5671b3d88d | 2 | #define global_h |
JornD | 28:4a5671b3d88d | 3 | |
JornD | 28:4a5671b3d88d | 4 | //Structures |
JordanO | 30:161f748a1cce | 5 | struct motorReturnSub |
JordanO | 30:161f748a1cce | 6 | { |
JordanO | 30:161f748a1cce | 7 | int counts; |
JordanO | 30:161f748a1cce | 8 | float angle; |
JordanO | 30:161f748a1cce | 9 | float velocity; |
JordanO | 30:161f748a1cce | 10 | }; |
JordanO | 30:161f748a1cce | 11 | struct motorReturn |
JordanO | 30:161f748a1cce | 12 | { |
JordanO | 30:161f748a1cce | 13 | motorReturnSub motor1; |
JordanO | 30:161f748a1cce | 14 | motorReturnSub motor2; |
JordanO | 30:161f748a1cce | 15 | motorReturnSub motor3; |
JordanO | 30:161f748a1cce | 16 | }; |
JornD | 28:4a5671b3d88d | 17 | |
JornD | 28:4a5671b3d88d | 18 | //Define global variables |
JornD | 28:4a5671b3d88d | 19 | extern double X; //Input from EMG, signal X |
JornD | 28:4a5671b3d88d | 20 | |
JornD | 28:4a5671b3d88d | 21 | //Define structures |
JordanO | 30:161f748a1cce | 22 | extern motorReturn motorData; |
JornD | 28:4a5671b3d88d | 23 | |
JornD | 28:4a5671b3d88d | 24 | #endif |