Jorn Dokter / Mbed 2 deprecated TEB_branch2

Dependencies:   mbed QEI HIDScope biquadFilter MODSERIAL FastPWM

Committer:
JordanO
Date:
Thu Oct 10 14:36:42 2019 +0000
Revision:
35:51914ac2d7f4
Parent:
32:da34d27a13f3
Child:
37:6602655a80f4
Motor 3 Added to motorAndEncoder function

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JornD 24:d0ca537913c2 1 #ifndef header_h
JornD 24:d0ca537913c2 2 #define header_h
JornD 24:d0ca537913c2 3 int AddInt(int a, int b);
JordanO 27:71be6e074d0f 4
JordanO 18:266f1ffdc9c4 5 double ControllerPID(double e, double Ts); //e = error, Ts = sampling time
JordanO 35:51914ac2d7f4 6 void motorAndEncoder(float PWM1, float PWM2, float PWM3, float dt);
JordanO 19:07706535ff7b 7 //voltage in PWM (between -1 and 1), -1 for negative direction full power, 1 for positive direction full power
JordanO 18:266f1ffdc9c4 8 //period in seconds
JordanO 19:07706535ff7b 9 //dt the time between measurements, i.o.w. Ticker timing, for velocity calculation
JordanO 35:51914ac2d7f4 10 //Edits motorReturn.motor#.counts/velocity/angle
JordanO 35:51914ac2d7f4 11 #endif
JornD 23:767911637f3a 12
JornD 24:d0ca537913c2 13 //double ProcessEMG(double X);