-
-
Notifications
You must be signed in to change notification settings - Fork 155
Revert "Added missing slices of data samples arrays in spectrum calc" #831
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
Revert "Added missing slices of data samples arrays in spectrum calc" #831
Conversation
…etaflight#819)" This reverts commit 3639e69.
WalkthroughThe update removes array slicing operations from three internal functions in Changes
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Graph Analysis (1)src/graph_spectrum_calc.js (1)
🔇 Additional comments (4)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Preview URL: https://376c8713.betaflight-blackbox.pages.dev |
|
|
please merge this. investigating |
|
i marked, then removed draft. -- the preview is not working, but local build works. |



Reverts #819
I doubted that it was bug and i've found an answer.
The source spectrum code used FFT zero padding method, to get bigger fft resolution at the chart. It uses big input/output size with big zero values pad. As result we had high fft resolution as fs/N. But zero pad does not change frequency resolution, what is 1/T.
The current PR uses current sample size for fft input, what is not good for fft speed.
I want try to use fft input size as nearest power 2 value and fill zero values in empty cells only.
The both methods is working. But we need to test and compare new method before.
Those methods choice is ground of my next PSD PRs. I will need the big rebase of PSD PRs in any case. I will use new method for PSD.
Therefore i suggest to revert this and PSD :) PRs.
The PSD works good and i have power2 sized version, but let's test and compare the all these before.
Summary by CodeRabbit