Project BioRobotics Group 19
Dependencies: FastPWM HIDScope MODSERIAL QEI biquadFilter mbed
Diff: main.cpp
- Revision:
- 21:2e732eb85daf
- Parent:
- 20:ab391a133a01
- Child:
- 23:a87fd4719655
--- a/main.cpp Fri Nov 03 10:04:52 2017 +0000 +++ b/main.cpp Fri Nov 03 10:06:57 2017 +0000 @@ -82,7 +82,7 @@ // EMG ///////////////////////////////////////////////////////////////////////// Ticker emgLeft; // Ticker for EMG of left arm Ticker emgRight; // Ticker for EMG of right arm -const double emgTs = 0.4993; // Time step for EMG sampling +const double emgTs = 0.4993; // Time step for EMG sampling [s] // Filters BiQuadChain bqc; BiQuad bq2_high(0.875182, -1.750364, 0.87518, -1.73472, 0.766004); // High pass filter @@ -107,7 +107,7 @@ // PROCESS EMG SIGNALS ///////////////////////////////////////////////////////// Ticker processTicker; // Ticker for processing of EMG -const double processTs = 0.101; // Time step for processing of EMG +const double processTs = 0.101; // Time step for processing of EMG [s] volatile bool xdir = true, ydir = false; // Direction the EMG signal moves the end effector volatile int count = 0; // Counter to change direction