-
-
Notifications
You must be signed in to change notification settings - Fork 152
Revert "Added Power Spectral Density curves at the spectrum chart (Completion of #820 PR)" #830
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 Power Spectral Density curves at the spectrum chart (Completion of #820 PR)" #830
Conversation
…mpletion…" This reverts commit cd62b52.
WalkthroughThe changes remove all functionality, UI elements, and code related to the Power Spectral Density (PSD) spectrum type. This includes eliminating the PSD option from the dropdown menu, deleting PSD data loading and calculation methods, and removing PSD rendering logic from the spectrum graph. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant UI
participant SpectrumLogic
participant Plot
User->>UI: Select spectrum type
UI->>SpectrumLogic: Request data for selected type
SpectrumLogic->>Plot: Provide data for rendering
Plot->>UI: Render spectrum graph
Note over UI,Plot: PSD spectrum type and related flows are now removed
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
💤 Files with no reviewable changes (2)
🔇 Additional comments (8)
✨ 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://4f172a30.betaflight-blackbox.pages.dev |
|
Just to be sure @demvlad @nerdCopter this should revert too ? |
i do not personally know. i did not test this one, but other functions seem to still work with it merged. did not test this code whatsoever. |
I think, this PR and about slice PR can revert.
|
@coderabbitai |
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain@demvlad Let me search the codebase to see what FFT library is being used and whether it supports inverse FFT transform. 🏁 Script executed:
Length of output: 33019 🏁 Script executed:
Length of output: 23198 @demvlad Yes, your FFT library does support inverse FFT transform! Based on my examination of the FFT implementation in FFT.complex constructor supports inverse transforms: var complex = function (n, inverse) {
// ...
var state = {
n: n,
inverse: inverse, // This flag controls forward vs inverse
// ...
}
} The library includes inverse logic in the butterfly functions: if (state.inverse) {
var r1_r = i1_r - i3_i
var r1_i = i1_i + i3_r
} else {
var r1_r = i1_r + i3_i
var r1_i = i1_i - i3_r
} Usage examples:
Current usage in your codebase: const fft = new FFT.complex(fftChunkLength, false); // false = forward FFT
const fft = new FFT.complex(fftLength, false); // false = forward FFT So if you need inverse FFT for your PSD implementation or other signal processing work, you can simply change the second parameter from |
@coderabbitai thank's |
Tip For best results, initiate chat on the files or code changes. @demvlad You're welcome! That's great to hear that you'll be able to use the inverse FFT functionality for your upcoming PRs. Feel free to tag me when you're working on those future implementations - I'd be happy to help review the inverse FFT usage or assist with any signal processing questions that come up during development. Good luck with your PSD and other signal analysis work! 🐇
o_(")(") thoughtful rabbit learning new FFT tricks |
Reverts #826
The all looks good, but it exists some issues.
It needs testing. Will resolved soon.
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Style