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: DMSupport DMemWin
Fork of Motor_Embedded_3rd_emwin by
Diff: embedded/MATH1.cpp
- Revision:
- 1:c6b089f4ff2a
- Parent:
- 0:08606a13a816
- Child:
- 2:bfc676294e38
--- a/embedded/MATH1.cpp Thu Jun 02 05:04:57 2016 +0000
+++ b/embedded/MATH1.cpp Tue Jan 10 08:25:27 2017 +0000
@@ -134,7 +134,7 @@
{
double t = 1.0 /sps ;
- double mean;
+ double mean1;
double sum = 0.0;
out[0] = 0 ;
double v = 0;
@@ -144,10 +144,10 @@
out[i] = v;
}
- mean = mean(out, len);
+ mean1 = mean(out, len);
for(int i = 0 ; i<len ; i++) {
- out[i] = ( out[i] - mean ) * 1000;
+ out[i] = ( out[i] - mean1 ) * 1000;
}
