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 Project_script_union_final by
Revision 37:c7ca9bc29d20, committed 2018-11-06
- Comitter:
- MarijkeZondag
- Date:
- Tue Nov 06 13:03:02 2018 +0000
- Parent:
- 36:650a9245bc44
- Child:
- 38:f45aa515f625
- Commit message:
- ..
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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
