Skip to main content
Explorer II
May 20, 2025
Question

FMAC implementation

  • May 20, 2025
  • 3 replies
  • 633 views

Hi all

I have an IIR filter design with 7 coefficients. (For feed-forward and for feed-back)

Regularly all the coeffs are between -1 to +1

So I Just multiply each by 2^15 to get it in q1.15 format.

However, now, the feedforward coeffs are very small (0.0000000001 or something like that)

and the feedback coeffs are up to 30.

How to initialize the system to get it work?

    This topic has been closed for replies.

    3 replies

    Super User
    May 20, 2025

    Is chatgpt broken today?

     

    yonatanAuthor
    Explorer II
    May 21, 2025

    Seriously?

    I was thinking that the toxicity is only stack-overflow privilege.

    Do you really want me to go through all the BS it gives me just to get the conclusion

    that I need to scale the factor to get them in values greater than 1 but

    it is impossible due to the fact they are TOO SMALL (as I said in the post)

    Take a look here:

    https://chatgpt.com/share/682e0de8-9490-800a-9a07-e690a4711dc9

     

    Graduate II
    May 21, 2025

    Fixed point probably not going to cut it then, could you use the FPU and VMLA.F32, with 32-bit floats?

    yonatanAuthor
    Explorer II
    May 25, 2025

    That's what I doing right now. with a for loop...

    Graduate
    May 22, 2025

    Just curious what the filter is actually being used for - maybe there are alternative approaches that can be taken...

    yonatanAuthor
    Explorer II
    May 25, 2025

    I have to filter velocity derived by position[n] - position[n-1]

    The sample freq is 50K and the cutoff should be less than 350 Hz