Jorn Dokter / Mbed 2 deprecated TEB_branch2

Dependencies:   mbed QEI HIDScope biquadFilter MODSERIAL FastPWM

header.h

Committer:
JordanO
Date:
2019-10-09
Revision:
31:d1bd16a05148
Parent:
28:4a5671b3d88d
Child:
32:da34d27a13f3

File content as of revision 31:d1bd16a05148:

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

double ControllerPID(double e, double Ts); //e = error, Ts = sampling time
motorReturn motorAndEncoder(float PWM1, float PWM2, float dt)
#endif

//double motorAndEncoder(float voltage1, float periodMotor1, float voltage2, float periodMotor2, float dt,  float &countsMotor1Return, float &countsMotor2Return, float &velocityMotor1Return, float &velocityMotor2Return);
    //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
    //Returns (velocityMotor1, velocityMotor2, countsMotor1[1], countsMotor2[0])
        //Velocity in radians/s
        
//double ProcessEMG(double X);