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.

AWR1843: Change the code in code composer so that it does not recognize objects above a range of 5 meters.

Part Number: AWR1843

Hello E2E Experts,

Good day.

As the title suggests, I use the SRR lab and I want to change the code in code composer so that it does not recognize objects above a range of 5 meters.


This is the code I added. Can you tell me what I need to add to make it work? Is the syntax correct?


int range = pow(pow(detObj2D[ik].x, 2) + pow(detObj2D[ik].y, 2), 0.5f);
if (range <= 5.0f)
{
detObjFinal[counter].speed = detObj2D[ik].speed;
detObjFinal[counter].peakVal = detObj2D[ik].peakVal;
detObjFinal[counter].x = detObj2D[ik].x;
detObjFinal[counter].y = detObj2D[ik].y;

counter += 1;
}
//

}
//
obj->numDetObj = counter;

Regards,

CSC