emg_mk

Dependencies:   HIDScope MODSERIAL mbed-dsp mbed

Files at this revision

API Documentation at this revision

Comitter:
s1340735
Date:
Thu Oct 23 12:13:04 2014 +0000
Parent:
10:9319e872c752
Child:
12:197b7ca8dbe2
Commit message:
10 s naar 60 s;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 23 10:24:10 2014 +0000
+++ b/main.cpp	Thu Oct 23 12:13:04 2014 +0000
@@ -158,19 +158,9 @@
     arm_biquad_cascade_df1_init_f32(&highpassT,1,highpass_const,highpass_states);
 
     log_timerT.attach(Triceps, 0.005);
-    wait(10); //log_timerT wordt 2000 keer uitgevoerd
+    wait(60); //log_timerT wordt 2000 keer uitgevoerd
     log_timerT.detach();
-
-    wait(5);
-
-    Ticker log_timerB;
-    arm_biquad_cascade_df1_init_f32(&lowpassB,1,lowpass_const,lowpass_states);
-    arm_biquad_cascade_df1_init_f32(&highpassB,1,highpass_const,highpass_states);
-
-    log_timerB.attach(Biceps,0.005);
-    wait(10);//log_timerB wordt 2000 keer uitgevoerd
-    log_timerB.detach();
-
+    
     // positie van batje met behulp van Triceps
     drempelwaardeT1=4;
     drempelwaardeT2=7;
@@ -202,6 +192,16 @@
         }
     }
 
+    wait(5);
+
+    Ticker log_timerB;
+    arm_biquad_cascade_df1_init_f32(&lowpassB,1,lowpass_const,lowpass_states);
+    arm_biquad_cascade_df1_init_f32(&highpassB,1,highpass_const,highpass_states);
+
+    log_timerB.attach(Biceps,0.005);
+    wait(60);//log_timerB wordt 2000 keer uitgevoerd
+    log_timerB.detach();
+    
     //bepaling van snelheidsstand met biceps
 
     drempelwaardeB1=4;