ADD: added a simple averging filter function. input parameter K, can be 1 to 8
ref: http://www.edn.com/design/systems-design/4320010/A-simple-software-lowpass-filter-suits-embedded-system-applications
This commit is contained in:
1 parent
7aa24806f4
commit
4c543dbd3f
3 files changed
+37
-7
No files matched your search
+4
-1
@@ -2417,7 +2417,10 @@ int Cmdhex2bin(const char *Cmd)
|
||||
}
|
||||
|
||||
int CmdDataIIR(const char *Cmd){
|
||||
iceIIR_Butterworth(GraphBuffer, GraphTraceLen);
|
||||
|
||||
uint8_t k = param_get8(Cmd,0);
|
||||
//iceIIR_Butterworth(GraphBuffer, GraphTraceLen);
|
||||
iceSimple_Filter(GraphBuffer, GraphTraceLen, k);
|
||||
RepaintGraphWindow();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user