Jorn Dokter / Mbed 2 deprecated TEB_branch2

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