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 biquadFilter mbed
Fork of emg_import by
Revision 25:58f351d9fcc4, committed 2016-10-28
- Comitter:
- daniQQue
- Date:
- Fri Oct 28 07:19:58 2016 +0000
- Parent:
- 24:bfc240e381b4
- Child:
- 26:38dc21b9ba7d
- Commit message:
- change at hidscope: raw signal!
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Oct 25 14:39:40 2016 +0000
+++ b/main.cpp Fri Oct 28 07:19:58 2016 +0000
@@ -80,7 +80,7 @@
if(switch_signal_leftarm==1)
{
n++;
- wait(0.05f);
+ wait(0.5f);
}
}
@@ -139,10 +139,10 @@
}
//send signals to scope
- scope.set(0, emg_filtered_biceps_right); //set emg signal to scope in channel 0
- scope.set(1, emg_filtered_triceps_right); // set emg signal to scope in channel 1
- scope.set(2, emg_filtered_biceps_left); // set emg signal to scope in channel 2
- scope.set(3, onoffsignal_rightarm); // set emg signal to scope in channel 3
+ scope.set(0, emg_filtered_biceps_right); //set emg signal to scope in channel 0 // change into raw signal!
+ scope.set(1, emg_filtered_triceps_right); // set emg signal to scope in channel 1// change into raw signal!
+ scope.set(2, emg_filtered_biceps_left); // set emg signal to scope in channel 2
+ scope.set(3, onoffsignal_rightarm); // set emg signal to scope in channel 3
scope.set(4, switch_signal_leftarm);
scope.send(); //send all the signals to the scope
@@ -154,7 +154,7 @@
{
pc.baud(115200);
sample_timer.attach(&filter, 0.001); //continously execute the EMG reader and filter, it ensures that filter and sampling is executed every 1/frequency seconds
-switch_function.attach(&SwitchN,0.1);
+switch_function.attach(&SwitchN,1);
//endless loop
while (true) { // zorgt er voor dat de code oneindig doorgelopen wordt
