Hi.
I am customizing Overhead mount occupancy lab from Automotive toolbox.
Perhaps, there is a small bug in Capon3d module.
The CFAR function in RADARDEMO_detectionCFAR_priv.c includes "neighbour check" logic for local maxima. A local peak is detected if it is higher than sidelobeThr * azMaxPerRangeBin[localRangeInd]. See lines 1374, 1415, 1454 in RADARDEMO_detectionCFAR_priv.c file .
However, the array azMaxPerRangeBin is not filled out, because every time when the heatmap calculating function RADARDEMO_aoaEst2DCaponBF_raHeatmap is called, it writes the max. value into the first element of azMaxPerRangeBin array.
Therefore, random values are used as thresholds in the detection logic in CFAR function.
Can I reach the developers of the lab through this forum, to confirm whether it is a bug indeed or my misunderstanding?
Thank you!