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 QEI TextLCD mbed
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