Jorick Leferink
/
programma_filter
programma voor filter
Fork of BMT-K9-Groep7 by
Revision 3:57c5633df1ca, committed 2013-10-17
- Comitter:
- vsluiter
- Date:
- Thu Oct 17 09:29:52 2013 +0000
- Parent:
- 2:60fc72e8ff66
- Child:
- 4:d0b4c806f4ea
- Commit message:
- Variables that need to be rembered within a function have to be declared static!!; Otherwise make them global
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;