我们回到C代码,现在我们走读到了这里:
/* CFAR-detecton on current range line: search doppler peak among numDopplerBins samples */
numDetObjPerCfar = mmwavelib_cfarCadBwrap(
obj->sumAbs,
obj->cfarDetObjIndexBuf,
obj->numDopplerBins,
obj->cliCfg->cfarCfgDoppler.thresholdScale,
obj->cliCfg->cfarCfgDoppler.noiseDivShift,
obj->cliCfg->cfarCfgDoppler.guardLen,
obj->cliCfg->cfarCfgDoppler.winLen);
if(numDetObjPerCfar > 0)
{
for (detIdx1 = 0; detIdx1 < numDetObjPerCfar; detIdx1++)
{
if (!MmwDemo_isSetDopplerLine(&obj->