Open
Description
Answers checklist.
- I have read the ESP-DSP documentation and the issue is not addressed there.
- I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
- I have updated my ESP-DSP branch (master or release) to the latest version and checked that the issue is present there.
- I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
Hi!
I suspect, that fft output contains dc offset at index=0 and Nyquist frequency at index=1 (like in ARM CMSIS DSP library for cortex).
I have accelerometer signal. I feed input signal (hann window applied to real values) interleaved by zeros to dsps_fft2r_fc32.
- Bit reverse op applied to output (dsps_bit_rev_fc32).
- dsps_cplx2reC_fc32 is also applied.
After calc of magnitude on output sqrtf(real^2 + imag^2) the first bin (index = 1) is always bigger than others.
If I set bin 0 and 1 to zero - I get the results that seems to be near to reality (bin index multiplied by freq resolution... ~ expected fundamental freq of my test vibration).
I am i right about index 0 and 1?
Thanks