emg
Dependencies: HIDScope MODSERIAL mbed-dsp mbed TouchButton
Fork of test by
Revision 30:0428978cc43e, committed 2014-10-27
- Comitter:
- Tanja2211
- Date:
- Mon Oct 27 13:53:06 2014 +0000
- Parent:
- 29:52a0d241e1b0
- Child:
- 31:01b4caea7ec0
- Commit message:
- :)
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:51:12 2014 +0000 +++ b/main.cpp Mon Oct 27 13:53:06 2014 +0000 @@ -207,15 +207,15 @@ arm_biquad_cascade_df1_init_f32(&highpassT,1,highpass_const,highpass_states); log_timerT1.attach(Triceps, 0.005); - wait(30); + wait(5); log_timerT1.detach(); - MOVAVG_T=MOVAVG_Positie1; + //MOVAVG_T=MOVAVG_Positie1; // positie van batje met behulp van Triceps - drempelwaardeT=0.1; + drempelwaardeT=0.2; - if (MOVAVG_Positie1>= drempelwaardeT) { + if (MOVAVG_T>= drempelwaardeT) { yT1=1; } else { yT1=0; @@ -235,9 +235,9 @@ wait(5); log_timerT2.detach(); - MOVAVG_T=MOVAVG_Positie2; + //MOVAVG_T=MOVAVG_Positie2; - if (MOVAVG_Positie2 >= drempelwaardeT) { + if (MOVAVG_T >= drempelwaardeT) { yT2=1; } else { yT2=0; @@ -250,13 +250,13 @@ //controle positie op scherm if (positie==0) { - pc.printf("Motor 2 blijft op stand 1\n"); + pc.printf("Motor 2 blijft op stand 0\n"); } else { if (positie==1) { - pc.printf("Motor 2 gaat naar stand 2\n"); + pc.printf("Motor 2 gaat naar stand 1\n"); } else { if (positie==2) { - pc.printf("Motor 2 gaat naar stand 3\n"); + pc.printf("Motor 2 gaat naar stand 2\n"); } } }