Filter emg 7-10-15 v1
Dependencies: HIDScope mbed MODSERIAL
Diff: Filterdesigns.cpp
- Revision:
- 17:cfe44346645c
- Parent:
- 16:8f175d2a472f
- Child:
- 18:eec0880fcded
--- a/Filterdesigns.cpp Fri Oct 09 09:57:09 2015 +0000 +++ b/Filterdesigns.cpp Fri Oct 09 11:27:58 2015 +0000 @@ -40,8 +40,9 @@ double gem = 0.4557; // gemiddelde waarde emgsignaal +double y=0; -void Filterdesigns(double u, double &y) +double Filterdesigns(double u) { //u = input waarde //y = output waarde @@ -65,4 +66,6 @@ double yLP = Filter(y1, v1_LP, v2_LP, a1_LP, a2_LP, b0_LP, b1_LP, b2_LP, gain_LP); y = 10 * yLP; + + return y; } \ No newline at end of file