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:
iceman1001 2016-08-29 20:29:31 +02:00
commit 4c543dbd3f
3 changed files with 37 additions and 7 deletions

View file

@ -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;
}