Dependents:   PID_VelocityExample TheProgram Passief_stuurprogramma Actief_stuurprogramma

Files at this revision

API Documentation at this revision

Comitter:
mganseij
Date:
Mon Nov 02 19:19:38 2015 +0000
Parent:
11:deb12a6f646e
Commit message:
Fixed some typo's

Changed in this revision

EMG.h Show annotated file Show diff for this revision Revisions of this file
diff -r deb12a6f646e -r 2eb227a21a93 EMG.h
--- a/EMG.h	Tue Oct 27 17:17:11 2015 +0000
+++ b/EMG.h	Mon Nov 02 19:19:38 2015 +0000
@@ -46,7 +46,7 @@
     u1 = input1; u2 = input2; u3 = input3; u4 = input4; // sample
     y1 = highpass1.step(u1); y2 = highpass2.step(u2); y3 = highpass3.step(u3); y4 = highpass4.step(u4); // filter order is: high-pass --> rectify --> low-pass
     y1 = fabs(y1); y2 = fabs(y2); y3 = fabs(y3); y4 = fabs(y4);
-    y1 = lowpass1.step(y1)*cali_fact1; y2 = lowpass2.step(y2)*cali_fact2; y3 = lowpass3.step(y3)*cali_fact1; y4 = lowpass4.step(y4)*cali_fact1; // roughly normalize to a scale of 0 - 1, where 0 is minimum and 1 is roughly the maximum output of dennis.
+    y1 = lowpass1.step(y1)*cali_fact1; y2 = lowpass2.step(y2)*cali_fact2; y3 = lowpass3.step(y3)*cali_fact3; y4 = lowpass4.step(y4)*cali_fact4; // roughly normalize to a scale of 0 - 1, where 0 is minimum and 1 is roughly the maximum output of dennis.
 }