Jorn Dokter / Mbed 2 deprecated TEB_branch2

Dependencies:   mbed QEI HIDScope biquadFilter MODSERIAL FastPWM

header.h

Committer:
JordanO
Date:
2019-10-10
Revision:
35:51914ac2d7f4
Parent:
32:da34d27a13f3
Child:
37:6602655a80f4

File content as of revision 35:51914ac2d7f4:

#ifndef header_h
#define header_h
int AddInt(int a, int b);

double ControllerPID(double e, double Ts); //e = error, Ts = sampling time
void motorAndEncoder(float PWM1, float PWM2, float PWM3, float dt);
    //voltage in PWM (between -1 and 1), -1 for negative direction full power, 1 for positive direction full power
    //period in seconds
    //dt the time between measurements, i.o.w. Ticker timing, for velocity calculation
    //Edits motorReturn.motor#.counts/velocity/angle
#endif
        
//double ProcessEMG(double X);