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 biquadFilter mbed
Fork of Milestone_sample by
Diff: main.cpp
- Revision:
- 11:b95b0e9e1b89
- Parent:
- 10:39ec51206c8b
- Child:
- 12:eaed305a76c3
diff -r 39ec51206c8b -r b95b0e9e1b89 main.cpp
--- a/main.cpp	Fri Oct 19 14:13:59 2018 +0000
+++ b/main.cpp	Fri Oct 19 14:15:43 2018 +0000
@@ -50,26 +50,26 @@
 //Functions
 void EMGFilter0()
 {
-    double emg0         = emg0_in.read();
-    double bandpass     = emg0band.step(emg0);
-    double absolute     = fabs(bandpass);
-    double notch0       = notch1.step(absolute);
+    double emg0          = emg0_in.read();
+    double bandpass0     = emg0band.step(emg0);
+    double absolute0     = fabs(bandpass0);
+    double notch0        = notch1.step(absolute0);
 }
 
 void EMGFilter1()
 {
-    double emg1         = emg1_in.read();
-    double bandpass     = emg1band.step(emg1);
-    double absolute     = fabs(bandpass);
-    double notch1       = notch1.step(absolute);
+    double emg1          = emg1_in.read();
+    double bandpass1     = emg1band.step(emg1);
+    double absolute1     = fabs(bandpass1);
+    double notch1        = notch1.step(absolute1);
 }
 
 void EMGFilter2()
 {
-    double emg2         = emg2_in.read();
-    double bandpass     = emg2band.step(emg2);
-    double absolute     = fabs(bandpass);
-    double notch2       = notch1.step(absolute);
+    double emg2          = emg2_in.read();
+    double bandpass2     = emg2band.step(emg2);
+    double absolute2     = fabs(bandpass2);
+    double notch2        = notch1.step(absolute2);
 }
 
 void encoderA_rise()       
    