Detected Iteration Above Threshold in Unit Time. Check if Frequency (iteration count in Unit time) above Threshold. CATION. max interval is 0xfff0: 65,520ms. max iter threshold is 0xffff. (threfore, using 131KB with span[0xffff].)
Diff: DetectFreqAboveTH.cpp
- Revision:
- 1:6ab4e8504d60
- Parent:
- 0:7672973d6bed
diff -r 7672973d6bed -r 6ab4e8504d60 DetectFreqAboveTH.cpp --- a/DetectFreqAboveTH.cpp Thu Oct 08 05:35:04 2015 +0000 +++ b/DetectFreqAboveTH.cpp Fri Oct 09 07:39:13 2015 +0000 @@ -1,9 +1,10 @@ #include "DetectFreqAboveTH.h" - +//extern DigitalOut led[]; DetectFreqAboveTH::DetectFreqAboveTH(int time_ms, int iter) { +// led[0]= 1; unitTime= time_ms; iterThreshold= iter; span= new unsigned short[iter]; @@ -12,6 +13,7 @@ span[id]= 0xffff; this->timer.start(true); id= 0; +// led[1]= 1; } DetectFreqAboveTH::~DetectFreqAboveTH()