emg
Dependencies: HIDScope MODSERIAL mbed-dsp mbed TouchButton
Fork of test by
Revision 29:52a0d241e1b0, committed 2014-10-27
- Comitter:
- s1340735
- Date:
- Mon Oct 27 12:51:12 2014 +0000
- Parent:
- 28:c6b19fdfba01
- Child:
- 30:0428978cc43e
- Child:
- 32:36bb6af01689
- Commit message:
- triceps if loop poging 2
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Oct 27 12:45:32 2014 +0000 +++ b/main.cpp Mon Oct 27 12:51:12 2014 +0000 @@ -220,8 +220,10 @@ } else { yT1=0; } + pc.printf("Triceps eerste meting is klaar.\n"); wait(3); + //bepaling van positie met tricep 2 Ticker log_timerT2; @@ -240,6 +242,7 @@ } else { yT2=0; } + pc.printf("Triceps tweede meting is klaar.\n"); //*** INPUT MOTOR 2 *** @@ -247,14 +250,15 @@ //controle positie op scherm if (positie==0) { - pc.printf("Motor 2 gaat naar stand 0\n"); - } - if (positie==1) { - pc.printf("Motor 2 gaat naar stand 1\n"); - } - if (positie==2) { - pc.printf("Motor 2 beweegt met snelheid 2\n"); - + pc.printf("Motor 2 blijft op stand 1\n"); + } else { + if (positie==1) { + pc.printf("Motor 2 gaat naar stand 2\n"); + } else { + if (positie==2) { + pc.printf("Motor 2 gaat naar stand 3\n"); + } + } } wait(5); @@ -266,11 +270,10 @@ arm_biquad_cascade_df1_init_f32(&highpassB,1,highpass_const,highpass_states); log_timerB.attach(Biceps,0.005); - wait(5);//log_timerB wordt 2000 keer uitgevoerd + wait(5); log_timerB.detach(); //bepaling van snelheidsstand met biceps - drempelwaardeB1=2; drempelwaardeB2=5; drempelwaardeB3=10;