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@31:d1bd16a05148, 2019-10-09 (annotated)
- Committer:
- JordanO
- Date:
- Wed Oct 09 13:50:32 2019 +0000
- Revision:
- 31:d1bd16a05148
- Parent:
- 30:161f748a1cce
- Child:
- 32:da34d27a13f3
asdd
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 | |
JordanO | 31:d1bd16a05148 | 4 | //Structures |
JordanO | 31:d1bd16a05148 | 5 | struct motorReturnSub |
JordanO | 31:d1bd16a05148 | 6 | { |
JordanO | 31:d1bd16a05148 | 7 | int counts; |
JordanO | 31:d1bd16a05148 | 8 | float angle; |
JordanO | 31:d1bd16a05148 | 9 | float velocity; |
JordanO | 31:d1bd16a05148 | 10 | }; |
JordanO | 31:d1bd16a05148 | 11 | |
JordanO | 31:d1bd16a05148 | 12 | struct motorReturn |
JordanO | 31:d1bd16a05148 | 13 | { |
JordanO | 31:d1bd16a05148 | 14 | motorReturnSub motor1; |
JordanO | 31:d1bd16a05148 | 15 | motorReturnSub motor2; |
JordanO | 31:d1bd16a05148 | 16 | motorReturnSub motor3; |
JordanO | 31:d1bd16a05148 | 17 | }; |
JornD | 28:4a5671b3d88d | 18 | |
JornD | 28:4a5671b3d88d | 19 | //Define global variables |
JornD | 28:4a5671b3d88d | 20 | extern double X; //Input from EMG, signal X |
JornD | 28:4a5671b3d88d | 21 | |
JornD | 28:4a5671b3d88d | 22 | //Define structures |
JordanO | 30:161f748a1cce | 23 | extern motorReturn motorData; |
JornD | 28:4a5671b3d88d | 24 | |
JornD | 28:4a5671b3d88d | 25 | #endif |