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: Encoder HIDScope MODSERIAL mbed
Diff: main.cpp
- Revision:
- 1:42fad02fb157
- Parent:
- 0:1e91c3ae4e28
- Child:
- 2:41b58289fed5
--- a/main.cpp Thu Nov 13 15:56:40 2014 +0000
+++ b/main.cpp Fri Nov 14 07:49:45 2014 +0000
@@ -261,9 +261,9 @@
{
static uint16_t n;
yn1 = notchfilter1(emg_value1);
- /*yhp1 = hpfilter1(yn1);
- ylp1 = lpfilter1(yhp1);*/
- ylp1 = fabs(yn1);
+ //yhp1 = hpfilter1(yn1);
+ ylp1 = lpfilter1(yn1);
+ ylp1 = fabs(ylp1);
ysum1 = ysum1+ylp1;
n++;
if(n==500) {
@@ -278,9 +278,9 @@
{
static uint16_t n;
yn2 = notchfilter2(emg_value2);
- /*yhp2 = hpfilter2(yn2);
- ylp2 = lpfilter2(yhp2);*/
- ylp2 = fabs(yn2);
+ //yhp2 = hpfilter2(yn2);
+ ylp2 = lpfilter2(yn2);
+ ylp2 = fabs(ylp2);
ysum2 = ysum2 + ylp2;
n++;