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
Testing FFT4 example but with real adc data is generating incorrect output of the fft. Comparing to the FFT example the radix-2 input vector is populated in a completely different way and it's not well documented in esp-dsp documentation, also there are some comments simply copy-pasted that are wrong and "input/output array with size of N2. An elements located: Re[0],Re[1], , … Re[N-1], any data… up to N2 result of DCT will be stored to this array from 0…N-1. Size of data array must be N*2!!! " suggest that the vector in radix4 should be half populated with real and half img, if so why use x1[i] = 10 * log10f((x1[i * 2 + 0] * x1[i * 2 + 0] + x1[i * 2 + 1] * x1[i * 2 + 1] + 0.0000001) / N); copied from FFT example?. To get the fft working properly I had to use FFT example (so using radix2) and populate the array using format Re[0], Im[0], … Re[N-1], Im[N-1]