Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: HIDScope MODSERIAL biquadFilter mbed
Fork of Filter by
Revision 9:76bc987121d3, committed 2017-11-01
- Comitter:
- aluminium
- Date:
- Wed Nov 01 15:02:29 2017 +0000
- Parent:
- 8:237b1e262ebd
- Commit message:
- final version voor jordi
Changed in this revision
Calibrationscript.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Calibrationscript.cpp Wed Nov 01 14:54:24 2017 +0000 +++ b/Calibrationscript.cpp Wed Nov 01 15:02:29 2017 +0000 @@ -48,7 +48,7 @@ bool check_calibration_r=0; double avg_emg_r; bool rechterarm_positief_r = false; -bool rechterarm_negatief_r = false; + //Linkerarm double emgFiltered_l; @@ -58,7 +58,7 @@ bool check_calibration_l=0; double avg_emg_l; bool linkerarm_positief_l = false; -bool linkerarm_negatief_l = false; + // FUNCTIONS @@ -120,13 +120,13 @@ led1.write(1); //led 1 is rood en uit rechterarm_positief_r = false; - rechterarm_negatief_r = true; + } else if(filteredAbs_temp_r > 0.3){ //if signal does not pass threshold value, blue light goes on led1.write(0); - rechterarm_negatief_r = false; + rechterarm_positief_r = true; } @@ -149,13 +149,13 @@ // led1.write(1); //led 1 is rood en uit led2.write(1); //led 2 is blauw en aan linkerarm_positief_l = false; - linkerarm_negatief_l = true; + } else if(filteredAbs_temp_l > 0.3){ //if signal does not pass threshold value, blue light goes on // led1.write(0); led2.write(0); - linkerarm_negatief_l = false; + linkerarm_positief_l = true; }