Tim Luten / Mbed 2 deprecated DEMO_TEST_LIJN

Dependencies:   Demo_TEST3 QEI biquadFilter mbed

Fork of Demo_TEST3 by Biorobotica TIC

Files at this revision

API Documentation at this revision

Comitter:
Hubertus
Date:
Thu Oct 18 14:16:08 2018 +0000
Parent:
1:5c3259ecf10a
Child:
3:be5ac89a0b53
Commit message:
Alles voor elkaar (NOTCH HP FABS MOVAG)

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Oct 18 13:46:33 2018 +0000
+++ b/main.cpp	Thu Oct 18 14:16:08 2018 +0000
@@ -60,14 +60,14 @@
     
     double emgNOFilteredL = bq3L.step(emgL.read());                          // Filtered HP value of EMG signal left biceps                
     double emgHPFilteredL = bq2L.step(emgNOFilteredL);                            // Filtered HP value of EMG signal left biceps
-    double emgabsL = abs(emgHPFilteredL);                                       // Absolute value of EMG signal left biceps
-    double emgLPFilteredL = bq1L.step(emgabsL);                                 // Filtered HP value of EMG signal left biceps
+    double emgabsL = fabs(emgHPFilteredL);                                       // Absolute value of EMG signal left biceps
+    
     
     
     
     for(int i = P-1; i >= 0; i--){                                              // For-loop used for moving average
         if (i == 0) {
-            A[i] = emgLPFilteredL;
+            A[i] = emgabsL;
             }
          else {
              A[i] = A[i-1];