programma voor filter

Dependencies:   MODSERIAL mbed

Fork of BMT-K9-Groep7 by First Last

Revision:
3:57c5633df1ca
Parent:
2:60fc72e8ff66
Child:
4:d0b4c806f4ea
--- a/main.cpp	Thu Oct 17 09:27:44 2013 +0000
+++ b/main.cpp	Thu Oct 17 09:29:52 2013 +0000
@@ -31,10 +31,11 @@
 void looper()
 {
     /*value0 is huidig, 1 is t-1, 2 is t-2 etc. Gebruik later aanduidingen ABCD. */   
-    char startup = 0; float mean;
+    static char startup = 0; 
+    float mean;
     float sig_out_biceps;
-    float in0,in1,in2,in3,in4;
-    float out0,out1,out2,out3,out4;
+    static float in0,in1,in2,in3,in4;
+    static float out0,out1,out2,out3,out4;
     float emg_abs; // square, mean en count eerder gedefinieerd
     if (startup != 1) 
         {in0 = in1 = in2 = in3 = in4 = 0;