Bandpass, notch, abs en laagdoorlaat 3Hz
Dependencies: HIDScope MODSERIAL mbed-dsp mbed TextLCD
Revision 5:f93b7068c202, committed 2014-10-29
- Comitter:
- lauradeheus
- Date:
- Wed Oct 29 16:34:45 2014 +0000
- Parent:
- 4:7150ed6ce984
- Child:
- 6:740f08fad2c3
- Commit message:
- Bandpass, notch, absoluut, laagdoorlaat, pieken en te raken doel werkt
Changed in this revision
EMGmeten.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/EMGmeten.cpp Wed Oct 29 16:12:34 2014 +0000 +++ b/EMGmeten.cpp Wed Oct 29 16:34:45 2014 +0000 @@ -33,6 +33,7 @@ bool aanspan; int aantal_pieken; +int doel; void looper(); void pieken_tellen(); @@ -66,6 +67,7 @@ } } + doel = aantal_pieken-((aantal_pieken/3)*3); scope.set(0,emg_value); //uint value scope.set(1,filtered_emg); //processed float scope.send(); @@ -85,7 +87,7 @@ while(1) //Loop { lcd.cls(); - lcd.printf("Aantal pieken =\n%d", aantal_pieken); + lcd.printf("Te raken doel =\n%d", doel); wait(0.02); /*Empty!*/ /*Everything is handled by the interrupt routine now!*/