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: mbed HIDScope FXOS8700Q
Diff: main.cpp
- Revision:
- 3:15eeab5ba885
- Parent:
- 2:c177a3e9708e
- Child:
- 4:0d80d02a257c
--- a/main.cpp Mon Oct 14 17:30:57 2019 +0000 +++ b/main.cpp Mon Oct 14 17:36:48 2019 +0000 @@ -1,5 +1,6 @@ #include "mbed.h" #include "math.h" +#include "HIDScope.h" // CODE THE PART WHERE WE PUT THE SIGNAL INTO RAW_SIGNAL // IF NEEDED WE CAN HAVE THE FILTERS OF SECOND ORDER @@ -68,6 +69,9 @@ raw_signal_1[1]=emg1.read(); raw_signal_2[1]=emg2.read(); raw_signal_3[1]=emg3.read(); + + scope.set(0, fabs(emg0.read()- emg1.read() ); + scope.send(); } @@ -145,6 +149,9 @@ emg_filtA[1]=k0*emg_absA[1]+k1*emg_absA[0]-l1*emg_filtA[0]; emg_filtB[1]=k0*emg_absB[1]+k1*emg_absB[0]-l1*emg_filtB[0]; + scope.set(1, emg_filtA[1] ); + scope.send(); + int main() {