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@35:51914ac2d7f4, 2019-10-10 (annotated)
- Committer:
- JordanO
- Date:
- Thu Oct 10 14:36:42 2019 +0000
- Revision:
- 35:51914ac2d7f4
- Parent:
- 32:da34d27a13f3
- Child:
- 37:6602655a80f4
Motor 3 Added to motorAndEncoder function
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 | 35:51914ac2d7f4 | 4 | //Structuresv |
JordanO | 32:da34d27a13f3 | 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 | 32:da34d27a13f3 | 12 | struct motorData |
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 | 32:da34d27a13f3 | 23 | extern motorData motorReturn; |
JornD | 28:4a5671b3d88d | 24 | |
JornD | 28:4a5671b3d88d | 25 | #endif |