This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AWR1243: Questions in radarDspProcessCfar_priv.c

Part Number: AWR1243

Dear respecful TI experts,

I have a couple of questions regarding software logics in radarDspProcessCfar_priv.c which is included in PROCESSOR_SDK_RADAR_03_04_00_00.

- Question #1

In the function named "AlgorithmFxn_RadarDspCfar_caall", loop variable "i" is converted into i_doppler depending on whether "i" is odd/even. Could you tell me what is the purpose of this conversion or the purpose of the "i_doppler".

-Question #2

In the function named "AlgorithmFxn_RadarDspCfar_caall", below codes which are performed when pCfarCreateParams->enableSecondPassSearch == 0 seem not correct

the stop condition in the second for loop should be corrected, otherwise all the variables in the for loop will be overflowed. please let me know if there is what I missed.

if (tempDetected < pCfarCreateParams->maxNumDetObj)
            {
                for (j = 0; j < (Int32)tempDetected; j++)
                {
                    cfarOut->noise[detected]        = tempNoise[j];
                    cfarOut->rangeInd[detected]     = tempRangeIndex[j];
                    cfarOut->dopplerInd[detected++] = i_doppler;
                }
            }
            else
            {
                for (j = 0; j < pCfarCreateParams->maxNumDetObj; j++)
                {
                    cfarOut->noise[detected]        = tempNoise[j];
                    cfarOut->rangeInd[detected]     = tempRangeIndex[j];
                    cfarOut->dopplerInd[detected++] = i_doppler;
                }
                break;
            }