Hi,
SDK: mmwave_sdk_02_00_00_04
Application: mmwave_industrial_toolbox_2_4_0/lab0012_srr_16xx
I got confused about obj->detObj1DRaw.
I found the MAC_ALLOC in data_path.c
MMW_ALLOC_BUF(detObj1DRaw, MmwDemo_objRaw1D_t,
MAX(detObj2DRaw_end, sumAbs_end), MMWDEMO_MEMORY_ALLOC_MAX_STRUCT_ALIGN,
(obj->numDopplerBins * MAX_NUM_DET_PER_RANGE_GATE));
if our numDopplerBins is 64, the obj->detObj1DRaw memory size is (MmwDemo_objRaw1D_t) * 192.
And our obj->numRangeBins is 256.
But there is a strange in MmwDemo_interFrameProcessing().
I found the detObj1DRawIdx is over 192 because our numRangeBins is 256. Is it right?
/* Find the list of doppler gates to perform 2D CFAR on. */
for (detIdx1 = 0; detIdx1 < numDetObjPerCfar; detIdx1++)
{
System_printf("detObj1DRawIdx: %d\n", detObj1DRawIdx);
detObj1DRawIdx = rangeIdx*MAX_NUM_DET_PER_RANGE_GATE + detIdx1;
obj->detObj1DRaw[detObj1DRawIdx].dopplerIdx = obj->cfarDetObjIndexBuf[detIdx1];
...
}