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
emgprocessing.cpp@61:4c7de1e2f9fe, 2019-10-16 (annotated)
- Committer:
- JornD
- Date:
- Wed Oct 16 09:24:22 2019 +0000
- Branch:
- Branch2
- Revision:
- 61:4c7de1e2f9fe
- Parent:
- signalprocessing.cpp@56:58cbb056e4be
- Child:
- 65:6252198c3b67
WORKING - started implementation of the EMG processing;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JornD | 61:4c7de1e2f9fe | 1 | #include "functions.h" |
JornD | 61:4c7de1e2f9fe | 2 | #include "structures.h" |
JornD | 61:4c7de1e2f9fe | 3 | |
JornD | 61:4c7de1e2f9fe | 4 | /* |
JornD | 61:4c7de1e2f9fe | 5 | #include "controller.cpp" |
JornD | 61:4c7de1e2f9fe | 6 | |
JornD | 61:4c7de1e2f9fe | 7 | extern ControllerSettings Set_LPFEMG; |
JornD | 61:4c7de1e2f9fe | 8 | extern ControllerSettings Set_NOTEMG; |
JornD | 61:4c7de1e2f9fe | 9 | extern MemoryIO Mem_LPFEMG; |
JornD | 61:4c7de1e2f9fe | 10 | extern MemoryIO Mem_NOTEMG; |
JornD | 61:4c7de1e2f9fe | 11 | |
JornD | 61:4c7de1e2f9fe | 12 | |
JornD | 43:9579a1afe9cb | 13 | float ProcessEMG(float X) |
JornD | 23:767911637f3a | 14 | { |
JornD | 61:4c7de1e2f9fe | 15 | float TempOne = Biquad(Set_LPFEMG, Mem_LPFEMG, X); |
JornD | 61:4c7de1e2f9fe | 16 | float TempTwo = Biquad(Set_NOTEMG, Mem_NOTEMG, TempOne); |
JornD | 61:4c7de1e2f9fe | 17 | |
JornD | 61:4c7de1e2f9fe | 18 | float Y = TempTwo; |
JornD | 23:767911637f3a | 19 | |
JornD | 23:767911637f3a | 20 | return Y; |
JornD | 61:4c7de1e2f9fe | 21 | } |
JornD | 61:4c7de1e2f9fe | 22 | */ |