EMG filtering; highpass, notch, abs, moving average

Dependencies:   HIDScope MODSERIAL- mbed-dsp mbed

Files at this revision

API Documentation at this revision

Comitter:
Hooglugt
Date:
Tue Oct 07 13:01:09 2014 +0000
Parent:
34:e166187e62ce
Child:
36:af949aaaba01
Commit message:
2nd while i voor j verandert (lampjes nog steeds geen goede kleur)

Changed in this revision

Project_main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Project_main.cpp	Tue Oct 07 12:34:32 2014 +0000
+++ b/Project_main.cpp	Tue Oct 07 13:01:09 2014 +0000
@@ -16,8 +16,8 @@
 PwmOut      green(LED_GREEN);
 PwmOut      blue(LED_BLUE);
 
-int8_t         direction = 0;
-int8_t         force = 0;
+int         direction = 0;
+int         force = 0;
 
 Ticker log_timer;
 Ticker reset_timer;
@@ -59,7 +59,7 @@
         pc.printf("reset ");
     }
 }
-CONSTANTE RESETS DOOR BEWEGINGSARTEFACTEN*/
+CONSTANTE RESETS DOOR BEWEGINGSARTEFACTEN */
 
 int main()
 {
@@ -132,8 +132,8 @@
     }
     while(1) { //Loop keuze FORCE
 forcechoice:
-        for(int i=1; i<4; i++) {
-            if(i==1) {           //red
+        for(int j=1; j<4; j++) {
+            if(j==1) {           //red
                 red=0;
                 green=1;
                 blue=1;
@@ -154,7 +154,7 @@
                     }
                 }
             }
-            if(i==2) {           //green
+            if(j==2) {           //green
                 red =1;
                 green=0;
                 blue=1;
@@ -175,7 +175,7 @@
                     }
                 }
             }
-            if(i==3) {           //blue
+            if(j==3) {           //blue
                 red=1;
                 green=1;
                 blue=0;