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 emg_import by
Diff: main.cpp
- Revision:
- 17:4548efffe193
- Parent:
- 16:fd4521a4f0b3
- Child:
- 18:d7695ac04de3
--- a/main.cpp Mon Oct 24 11:40:48 2016 +0000
+++ b/main.cpp Mon Oct 24 11:45:07 2016 +0000
@@ -5,7 +5,7 @@
//Define objects
AnalogIn emg_biceps_right_in( A0 ); //analog in to get EMG from right biceps in to c++
-AnalogIn emg_tricept_right_in (A1); //analog in to get EMG from left biceps in to c++
+AnalogIn emg_triceps_right_in (A1); //analog in to get EMG from left biceps in to c++
Ticker sample_timer; //ticker
HIDScope scope( 3); //open 3 channels in hidscope
DigitalOut richting_motor1(D4); //motor1 direction output
@@ -27,8 +27,8 @@
//functions which are called in ticker
void filter(){
- biceps_right = emg_biceps_right_in.read; //inladen data
- triceps_right = emg_tricept_right_in.read; //inladen data
+ biceps_right = emg_biceps_right_in.read(); //inladen data
+ triceps_right = emg_triceps_right_in.read(); //inladen data
signalsum_right = biceps_right-triceps_right; // inladen data
signalsum_right_filter_high = filterhigh.step(signalsum_right);
