Jorn Dokter / Mbed 2 deprecated TEB_branch2

Dependencies:   mbed QEI HIDScope biquadFilter MODSERIAL FastPWM

Committer:
JornD
Date:
Tue Oct 08 13:45:30 2019 +0000
Revision:
23:767911637f3a
Parent:
22:4197629a300f
Child:
24:d0ca537913c2
Started implementation of globalvariables.cpp and EMG processing;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JordanO 18:266f1ffdc9c4 1 double ControllerPID(double e, double Ts); //e = error, Ts = sampling time
JordanO 18:266f1ffdc9c4 2
JordanO 22:4197629a300f 3 double motorAndEncoder(float voltage1, float periodMotor1, float voltage2, float periodMotor2, float dt, float &countsMotor1Return, float &countsMotor2Return, float &velocityMotor1Return, float &velocityMotor2Return);
JordanO 19:07706535ff7b 4 //voltage in PWM (between -1 and 1), -1 for negative direction full power, 1 for positive direction full power
JordanO 18:266f1ffdc9c4 5 //period in seconds
JordanO 19:07706535ff7b 6 //dt the time between measurements, i.o.w. Ticker timing, for velocity calculation
JordanO 18:266f1ffdc9c4 7 //Returns (velocityMotor1, velocityMotor2, countsMotor1[1], countsMotor2[0])
JornD 23:767911637f3a 8 //Velocity in radians/s
JornD 23:767911637f3a 9
JornD 23:767911637f3a 10 double ProcessEMG(double X);