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
- Committer:
- JordanO
- Date:
- 2019-10-10
- Revision:
- 38:3ff3cdb8740d
- Parent:
- 37:6602655a80f4
- Child:
- 39:8d8ff9a30cfc
File content as of revision 38:3ff3cdb8740d:
#ifndef global_h #define global_h //Structuresv struct motorDataOutputSub { int counts; float angle; float velocity; }; struct motorDataInputSub { float PWM; int calibrationCounts; }; struct motorDataCombined { 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 motorStruc motorData; #endif