Ammlib

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Ammlib

637 次查看
Ayaz
Contributor IV


Hi
I am trying to use the AMMCLib in my project, but I am missing some information about how to implement the GDFLIB second-order filter.

but I am not getting the values I expect. I am unsure about the purpose of these buffers

fltFiltBufferX
and 
fltFiltBufferY

 

Skærmbillede 2025-04-09 173646.png


Could you provide some guidance on how to properly use them?

0 项奖励
回复
4 回复数

612 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Hi,

Thank you so much for your interest in our products and for using our community.

3.15 GDFLIB_FilterIIR2 section of S32K3XXMCLUG gives more details and code example about it.

You can find such filet in C:\NXP\AMMCLIB\S32K3xx_AMMCLIB_v1.1.39\doc.

Hope it helps you. Please let me know if you have more questions about it.

Have a nice day!

0 项奖励
回复

547 次查看
Ayaz
Contributor IV

i had a look at that document. 
I have implemented an IIR filter in my project, which needs to be called periodically. However, the filter only works if I initialize it before each call, which resets the filter. This periodic reset is not acceptable for my design. If I initialize the filter only once at the beginning, it returns NaN values, indicating that the filter is not functioning correctly. Could you please provide an example of how to use the IIR filter effectively for periodic data filtering?
for 

GDFLIB_FilterIIR2Init_FLT
and
GDFLIB_FilterIIR2_FLT
0 项奖励
回复

435 次查看
_Leo_
NXP TechSupport
NXP TechSupport

Sorry foy delay. I noticed that you have another similar case, so I will follow up on this last one that I mention.

https://community.nxp.com/t5/S32K/Amclib/td-p/2085351

0 项奖励
回复

494 次查看
Ayaz
Contributor IV

I have not received any answer yet 

0 项奖励
回复