design filter to implement in microcontroller
古いコメントを表示
Hello :)
I want to design a filter that attenuate some frequencies and has minimun delay to the signal.
I'm building quacoopter controller, and I want to design a IIR or FIR filter to implement later in C code in the microcontroller.
is there some exaple or explanation on how could i desgin the filter and implement it in C code?
Thank you very much!
採用された回答
その他の回答 (1 件)
Jan
2022 年 10 月 16 日
0 投票
You find C code implementation of filter() here: https://www.mathworks.com/matlabcentral/fileexchange/32261-filterm
As M code: https://www.mathworks.com/matlabcentral/answers/9900-use-filter-constants-to-hard-code-filter#comment_2203200 , which can be converted to C easily also.
Do you want to rewrite the tool to design of the filter parameters also?
2 件のコメント
Eyal Sasson
2022 年 10 月 17 日
Jan
2022 年 10 月 17 日
Then you have to insert the code to obtain the next value into the loop for filtering.
カテゴリ
ヘルプ センター および File Exchange で Digital Filter Design についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

