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 mbed
Fork of Signal Filter by
Diff: main.cpp
- Revision:
- 5:ba1679ff9951
- Parent:
- 4:d6a3b318c744
- Child:
- 6:c20a8c0f90ed
diff -r d6a3b318c744 -r ba1679ff9951 main.cpp --- a/main.cpp Mon Sep 21 10:35:37 2015 +0000 +++ b/main.cpp Mon Sep 21 10:49:48 2015 +0000 @@ -40,9 +40,9 @@ void scopeSend(){ - double u1 = EMG ; + double u1 = EMG ; //filter 1 input double y1 = biquad( u1, f1_v1, f1_v2, f1_a1, f1_a2, f1_b0, f1_b1, f1_b2 ); - double u2 = y1; + double u2 = y1; //filter 2 input double y2 = biquad( u2, f2_v1, f2_v2, f2_a1, f2_a2, f2_b0, f2_b1, f2_b2 ); scope.set(0,y2); scope.send();