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: HIDScope MODSERIAL mbed-dsp mbed
Fork of emg_filter by
Revision 43:229a66c7a6c4, committed 2014-10-20
- Comitter:
- Tanja2211
- Date:
- Mon Oct 20 08:10:17 2014 +0000
- Parent:
- 42:d49b766ffdc7
- Child:
- 44:b47f559826ba
- Commit message:
- foutjes outgehaald
Changed in this revision
| EMGfilter.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/EMGfilter.cpp Mon Oct 20 08:04:00 2014 +0000
+++ b/EMGfilter.cpp Mon Oct 20 08:10:17 2014 +0000
@@ -180,7 +180,7 @@
float drempelwaardeT=4.99;
int y;
- if (filtered_emgT > drempelwaarde) {
+ if (MOVAVG_Tf > drempelwaardeT) {
y=1;
} else {
y=0;
@@ -200,11 +200,11 @@
int yB2;
int yB3;
- if (filtered_emgB > drempelwaarde1) {
+ if (MOVAVG_B > drempelwaarde1) {
yB1=1;
- if filtered_emgB > drempelwaarde2 {
+ if MOVAVG_B > drempelwaarde2 {
yB2=1;
- if filtered_emgB > drempeldwaarde3{
+ if MOVAVG_B > drempeldwaarde3{
yB3=1;
} else {
yB3=0
