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: mpu9250_i2c biquadFilter peakdetection Eigen
Revision 5:c37def827168, committed 2019-11-25
- Comitter:
- castlefei
- Date:
- Mon Nov 25 23:44:37 2019 +0000
- Parent:
- 4:15d6c7123b09
- Commit message:
- remove printf, delay time to 10ms
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| peakdetection.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Nov 25 23:38:03 2019 +0000
+++ b/main.cpp Mon Nov 25 23:44:37 2019 +0000
@@ -32,7 +32,7 @@
BiQuadChain bqc;
-#define SLEEP_TIME 100 // (msec)
+#define SLEEP_TIME 10 // (msec)
// main() runs in its own thread in the OS
@@ -108,13 +108,13 @@
{
res_smooth = bqc.step(res(i));
res_list.push_back(res_smooth);
- printf("result after filter in for loop %d: %f\n\r",i,res_smooth);
+ //printf("result after filter in for loop %d: %f\n\r",i,res_smooth);
//std::cout << "\t" << bqc.step( ) << std::endl;
}
int len = res_list.size();
//printf("len of res:%d\n\r", len);
numpeak = peak.findPeaks(res_list,len,threshold);
- printf("height in main: %f\n\r", threshold);
+ //printf("height in main: %f\n\r", threshold);
step = step + numpeak;
printf("num of step: %d\n\r", step);
--- a/peakdetection.lib Mon Nov 25 23:38:03 2019 +0000 +++ b/peakdetection.lib Mon Nov 25 23:44:37 2019 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/castlefei/code/peakdetection/#d1dac3b2692a +https://os.mbed.com/users/castlefei/code/peakdetection/#6500ec04a6a1