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.

CCS/IWR1642: target detection code in SRR

Part Number: IWR1642

Tool/software: Code Composer Studio

I want to modify the  code when target is detected. In iwr1642 short range radar code where do I have to modify in given SRR demo code?

  • Former Member
    0 Former Member
    Hello,

    Can you clarify what you mean by change when the target is detected?

    Amanda
  • There is a code in SRR demo about when the code is detected it takes that object and put in to some buffer to process that data ahead and send it on the uart pin.

  • Former Member
    0 Former Member in reply to Arpit Patel
    Hello Arpit,

    What is the issue you are having with the SRR demo?

    Amanda
  • In the given code of Short Range Radar there is DSS and MSS. My application is when the target get detected from more than 50m i have to switch on the light. I want to modify that given demo code at certain place when the target is detected and I can send signal from code so that i can switch on the light automatically. For that I have to find that code at a particular place this code is available in given DSS or MSS of demo code. I am asking for that particular place at which i can add my code and modify as per my application .I am asking for that particular place at which this code is available in DSS or MSS.
  • Hi AmandaN,
    Any answer?
  • Former Member
    0 Former Member in reply to Arpit Patel

    Hello Arpit,

    The SRR demo does not make use of the MSS project. Please closely review the reference design for the implementation details of the SRR demo. The reference code is also provided and can be examined in CCS. As highlighted in section 2.3.4 Data Path of the reference design. The object processing occurs in the data_path.c file. There are many ways to implement what you are interested in if you examine the data_path.c file you can see that one point to intercept the target list in the populateOutputs function around lines 4362 which traverses the detected object list.

        /* 1. Detected Object List */
        for (ik = 0; ik < obj->numDetObj; ik ++)
        {
            detObjFinal[ik].speed   = detObj2D[ik].speed;
            detObjFinal[ik].peakVal = detObj2D[ik].peakVal;
            detObjFinal[ik].x       = detObj2D[ik].x;
            detObjFinal[ik].y       = detObj2D[ik].y;
        }

    Amanda