TI单芯片毫米波雷达代码走读(十)—— 距离维(1D)FFT

上一期我们用MATLAB对加窗后的距离维数据进行了FFT处理看到了目标和目标距离,这一期我们看看C代码是如何做FFT的,回顾一下1D处理的函数代码:


/**
 *  @b Description
 *  @n
 *    Interchirp processing. It is executed per chirp event, after ADC
 *    buffer is filled with chirp samples.
 *
 *  @retval
 *      Not Applicable.
 */
void MmwDemo_interChirpProcessing(MmwDemo_DSS_DataPathObj *obj, uint8_t chirpPingPongId)
{
    uint32_t antIndx, waitingTime;
    volatile uint32_t startTime;
    volatile uint32_t startTime1;
    MmwDemo_DSS_dataPathContext_t *context = obj->context;
 
    waitingTime = 0;
    startTime = Cycleprofiler_getTimeStamp();
 
    /* Kick off DMA to fetch data from ADC buffer for first channel */
    EDMA_startDmaTransfer(context->edmaHandle[MMW_DATA_PATH_EDMA_INSTANCE],
                       MMW_EDMA_CH_1D_IN_PING);
 
    /* 1d fft for first antenna, followed by kicking off the DMA of fft output */
    for (antIndx = 0; antIndx < obj->numRxAntennas; antIndx++)
    {
        /* ki

你可能感兴趣的:(TI单芯片毫米波雷达代码走读)