Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

AWR1243: Questions in radarDspProcessCfar_priv.c

$
0
0

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;
            }


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>