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
Fork of TotalControlEmg2 by
Diff: Meanvalue.cpp
- Revision:
- 13:b01231e0b743
- Parent:
- 10:897db0bdb2fe
- Child:
- 15:c1a8f28d6583
--- a/Meanvalue.cpp Wed Oct 07 14:34:55 2015 +0000
+++ b/Meanvalue.cpp Thu Oct 08 15:02:09 2015 +0000
@@ -1,6 +1,6 @@
#include "Meanvalue.h"
-double samples[30] = {};
+//double samples[30] = {};
double Meanvalue(double y, double &sum, int &a, double &ymean, int delay){
@@ -18,7 +18,7 @@
return ymean;
}
}
-
+/*
double Meansmooth(double y, int samples_length, double &ymean){
for ( int n=30 ; n>1 ; n-- ){
@@ -35,4 +35,5 @@
return ymean;
}
+ */
\ No newline at end of file
