TEB programma
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: controller.cpp
- Branch:
- Branch2
- Revision:
- 64:5a6bf0cd1c50
- Parent:
- 62:44f5c366110b
--- a/controller.cpp Wed Oct 16 10:17:23 2019 +0000 +++ b/controller.cpp Wed Oct 16 10:58:23 2019 +0000 @@ -1,8 +1,7 @@ #include "structures.h" #include <math.h> -#include "global.cpp" +#include "global.h" - extern const float Ts; float K = 2/Ts; /* @@ -26,21 +25,6 @@ void InitializeControllers(void) { - //Define Controller structures, shorthand: Set_ - ControllerSettings Set_LPFEMG; - ControllerSettings Set_NOTEMG; - //-- - ControllerSettings Set_Base; //Controller base - ControllerSettings Set_EndAffector; //Controller end affector - - //Define Memory cells of the Input/Output, shorthand: Mem_ - MemoryIO Mem_LPFEMG; - MemoryIO Mem_NOTEMG; - //-- - MemoryIO Mem_Base; - MemoryIO Mem_EndAffector; - - //Build Controllers and define P and Q, the transfer function of the controller //--Build LPF controller, EMG float PL[] = {1,2,3};