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 QEI TextLCD mbed
Fork of TotalControlEmg2 by
Diff: main.cpp
- Revision:
- 13:b01231e0b743
- Parent:
- 10:897db0bdb2fe
- Child:
- 14:371e0d505971
--- a/main.cpp Wed Oct 07 14:34:55 2015 +0000 +++ b/main.cpp Thu Oct 08 15:02:09 2015 +0000 @@ -3,7 +3,7 @@ #include "Filterdesigns.h" AnalogIn emg(A0); //Analog input van emg kabels -HIDScope scope(3); //2 scopes +HIDScope scope(2); //3 scopes Ticker EMGticker; //Sample frequentie @@ -16,12 +16,12 @@ void EMGfilter(){ //uitlezen emg signaal double u = emg.read(); - Filterdesign1(u,y, ymean); + Filterdesigns(u,y, ymean); // Plotten in HIDscope scope.set(0,u); //ongefilterde waarde naar scope 1 scope.set(1,y); //gefilterde waarde naar scope 2 - scope.set(2,ymean); // gefilterde en gemiddelde waarde naar scope 3 + //scope.set(0,ymean); // gefilterde en gemiddelde waarde naar scope 3 scope.send(); //stuur de waardes naar HIDscope }