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_filter2 by
Revision 53:d90e54fba7d8, committed 2014-10-20
- Comitter:
- Tanja2211
- Date:
- Mon Oct 20 09:11:48 2014 +0000
- Parent:
- 52:cce270e0753a
- Child:
- 54:f3a9fa5f2b0e
- Commit message:
- foutjes weg
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:55:45 2014 +0000
+++ b/EMGfilter.cpp Mon Oct 20 09:11:48 2014 +0000
@@ -217,20 +217,18 @@
yB1=1;
if (MOVAVG_B > drempelwaardeB2) {
yB2=1;
- if (MOVAVG_B > drempeldwaardeB3) {
- yB3=1;
- } else {
- yB3=0
- }
+ if (MOVAVG_B > drempelwaardeB3) {
+ yB3=1;}
+ else {
+ yB3=0;}
} else {
- yB2=0
- }
- else {
+ yB2=0; }
+ } else {
yB1=0;
}
- }
+
int snelheidsstand;
- int yB1, yB2, yB3;
+
snelheidsstand=yB1+yB2+yB3;
if (snelheidsstand==1) {
pc.printf("Motor 1 beweegt met snelheid 1\n");
