
TEB programma
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: controller.cpp
- Revision:
- 43:9579a1afe9cb
- Parent:
- 41:7c4c41326cc6
- Child:
- 47:adbb886ed3cd
--- a/controller.cpp Mon Oct 14 12:15:43 2019 +0000 +++ b/controller.cpp Mon Oct 14 14:06:39 2019 +0000 @@ -1,5 +1,7 @@ #include "structures.h" +//Vectors of Numerators and Denumerators of transferfunctions + //Hier het omschrijven van TF(s) naar direct (in z) float TransferToDirect(float P, float Q) { @@ -10,18 +12,19 @@ void InitializeControllers(void) { - //Define Controller structures - ControllerSettings SetOne; + //Define Controller structures, shorthand: Set_ + ControllerSettings Set_EMGProcessing; - //Define Memory cells + //Define Memory cells, shorthand: Mem_ MemoryIO MemOne; //Write controller setting values to structures + float CoeffOne(P,Q); - SetOne.A = Coeff[0]; - SetOne.B = Coeff[1]; - SetOne.C = Coeff[2]; - SetOne.D = Coeff[3]; - SetOne.E = Coeff[4]; + SetOne.A = CoeffOne[0]; + SetOne.B = CoeffOne[1]; + SetOne.C = CoeffOne[2]; + SetOne.D = CoeffOne[3]; + SetOne.E = CoeffOne[4]; } \ No newline at end of file