接着上篇文章,我们来看核心算法函数:void MmwDemo_interChirpProcessing();
代码如下,我加了注释:
/**
* @b Description
* @n
* Interchirp processing. It is executed per chirp event, after ADC
* buffer is filled with chirp samples.
*
* @retval
* Not Applicable.
*/
//从函数名称可以看出,这个函数是做chirp(一个雷达回波)内的处理的
//主要是乒乓操作和1D-FFT
void MmwDemo_interChirpProcessing(MmwDemo_DSS_DataPathObj *obj, uint8_t chirpPingPongId)
{
//先看下函数的传参MmwDemo_DSS_DataPathObj *obj,
//MmwDemo_DSS_DataPathObj这个结构体大家可以点进去看下,非常庞大,雷达信号处理过程中的数据和参数几乎都在里面,
//英文原话是这么说的:The structure is used to hold all the relevant information for the data path.
uint32_t antIndx, waitingTime;
volatile uint32_t startTime;
volatile uint32_t startTime1;
MmwDemo_DSS_dataPathContext_t *co