Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed QEI HIDScope biquadFilter MODSERIAL FastPWM
Diff: emgprocessing.cpp
- Branch:
- Branch2
- Revision:
- 61:4c7de1e2f9fe
- Parent:
- 56:58cbb056e4be
- Child:
- 65:6252198c3b67
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emgprocessing.cpp Wed Oct 16 09:24:22 2019 +0000 @@ -0,0 +1,22 @@ +#include "functions.h" +#include "structures.h" + +/* +#include "controller.cpp" + +extern ControllerSettings Set_LPFEMG; +extern ControllerSettings Set_NOTEMG; +extern MemoryIO Mem_LPFEMG; +extern MemoryIO Mem_NOTEMG; + + +float ProcessEMG(float X) +{ + float TempOne = Biquad(Set_LPFEMG, Mem_LPFEMG, X); + float TempTwo = Biquad(Set_NOTEMG, Mem_NOTEMG, TempOne); + + float Y = TempTwo; + + return Y; +} +*/ \ No newline at end of file