Skip to content
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

FFT_SIZE too small for TD lowpass mode #74

Open
gfuer opened this issue Mar 20, 2021 · 0 comments
Open

FFT_SIZE too small for TD lowpass mode #74

gfuer opened this issue Mar 20, 2021 · 0 comments

Comments

@gfuer
Copy link

gfuer commented Mar 20, 2021

In lowpass mode, the FFT size needs to be >= 2x the number of sweep points in order that DC, Nyquist, positive frequencies and negative frequencies fit into the FFT buffer. But the definition in common.hpp does not provide that many points. The models with SWEEP_POINTS_MAX=201 would actually require 512 points, not 256.

#if SWEEP_POINTS_MAX < 256
#define FFT_SIZE 256
#elif SWEEP_POINTS_MAX < 512
#define FFT_SIZE 512
#else
#error "Need update FFT table for more points size"
#endif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant