-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filter calculation tools #176
Conversation
I like the idea of finally putting all of these calculations on the Github very much! 💯 |
Thx! I want to remove the HW limit from the main function (maybe add it as another function) because:
|
I see, regarding the HW limitation I think it is now clear that currently the FIR taps are on 25bits and the IIR on 17bits. Maybe we can add flag to discriminate between the QOP (or qm-qua) versions and make these limitations explicit so that the users will know what is going on and if the given taps are accurate or not, what do you think? |
Hey @yomach, I like this one a lot and many customers are actually asking for such a tool. |
Not much actually. I guess that we need to:
Do you have time to do it?
|
Cool! |
94a9d6b
to
decb673
Compare
72f9593
to
e96db1d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far!
I fixed the function as we discussed and added some tests.
But even with delay=11 and Ts=2, I get 111 taps resulting in an error so I wanted to raise an error if delay is not a multiple of the sampling time, what do you think? |
Ts = 2 is not a real scenario 😅 (Should be Ts = 0.5 for the OPX1000, in the future).
We can also add a message about it. I'm thinking something such as: summing the abs of the discarded FIR taps. If it's more than 0.01 (1%), give a warning, otherwise, just a debug message. |
Good point! I also initiated the hardware limitation function, but I am not sure about the best implementation and about the correct values... |
I think that the errors/warning I suggested above would cover this "crap signal" scenario, WDYT? |
5d9ee58
to
1ae64d4
Compare
If we raise an error, then it will be solved, but if we only raise a warning, then the user will be notified about it but the OPX will still output something that can be harmful for the device... |
I don't think it can harm the device. Removing taps makes the OPX send smaller signals. |
3701ec1
to
dcba422
Compare
da6d4c8
to
86a5254
Compare
86a5254
to
61955b5
Compare
Hi, take a look at this and please review it :)
It's without any tests and without the changelog/readme changes.
It's also mostly without any hardware limitations (besides the highpass), we need to decide if we want to include them or not. And if so, how to deal with changing limitations.