![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
final version
Dependencies: HIDScope MODSERIAL QEI biquadFilter mbed
Fork of Project_script_union_final by
Diff: main.cpp
- Revision:
- 37:c7ca9bc29d20
- Parent:
- 36:650a9245bc44
- Child:
- 38:f45aa515f625
diff -r 650a9245bc44 -r c7ca9bc29d20 main.cpp --- a/main.cpp Tue Nov 06 10:47:38 2018 +0000 +++ b/main.cpp Tue Nov 06 13:03:02 2018 +0000 @@ -11,9 +11,9 @@ // set HIDScope to version 7 // set biquadFilter to version 7 -AnalogIn emg0_in (A0); //First raw EMG signal input: calve muscle -AnalogIn emg1_in (A1); //Second raw EMG signal input: biceps muscle 1 -AnalogIn emg2_in (A2); //Third raw EMG signal input: biceps muscle 2 +AnalogIn emg0_in (A0); //First raw EMG signal input: calve muscle +AnalogIn emg1_in (A1); //Second raw EMG signal input: biceps muscle 1 +AnalogIn emg2_in (A2); //Third raw EMG signal input: biceps muscle 2 InterruptIn button1 (D10); InterruptIn button2 (D11); @@ -33,16 +33,15 @@ QEI encoder2 (D9, D8, NC, 8400,QEI::X4_ENCODING); QEI encoder1 (D12, D13, NC, 8400,QEI::X4_ENCODING); -//HIDScope scope( 6 ); //HIDScope set to 3x2 channels for 3 muscles, raw data + filtered +//--------------Tickers------------------------------------------------------------------------------------------------------------------------------// -//Tickers Ticker func_tick; Ticker movag_tick; Ticker emg_tick; Ticker print_tick; - -//Global variables + +//--------------Global Variables---------------------------------------------------------------------------------------------------------------------// //Ticker frequencies const float T = 0.002f; //Ticker period EMG, engine control