TI单芯片毫米波雷达代码走读(十六)—— 多普勒维(2D)处理之2D-FFT与求取模值

静态杂波滤除之后,我们接着看代码:

            /* process data that has just been DMA-ed  */
            mmwavelib_windowing16x32(
                  (int16_t *) inpDoppFftBuf,
                  obj->window2D,
                  (int32_t *) obj->windowingBuf2D,
                  obj->numDopplerBins);

            if(obj->cliCfg->bpmCfg.isEnabled)
            {
                /*If BPM is enabled, the FFT output buffer stores 2 sets of 
                  doppler bins so that BPM decoding can be done later on.*/
                fftOutIndx = pingPongId(pingPongIdx) * obj->numDopplerBins;
            }
            else
            {
                /*If BPM is not enabled, the FFT output buffer stores 1 set of 
                  doppler bins.*/
                fftOutIndx = 0;
            }            
            fftOutPtr  = (int32_t *)&obj->fftOut2D[fftOutIndx];
            DSP_fft32x32(
                        (int3

猜你喜欢

转载自blog.csdn.net/lightninghenry/article/details/109202164