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.

AWR1642: We are using awr1642 short range radar demo . We want to eliminate all static objects from output.

Part Number: AWR1642

Hi,

We are using awr1642 short range radar demo . We want to eliminate all static objects from output (As I see traffic monitor demo detects only moving objects).In similar manner we 

want to eliminate stationary objects before sending on UART/CAN.

For that in file dss_datapath.c

In function findandPopulateDetectedObjects() ,findandPopulateIntersectionOfDetectedObjects() we want to reorganize below portion of code

/* Existing code*/
 /* 3. Populate the output Array. */
            detObj2DRaw[numDetObj2D].rangeIdx = rangeIdx;
            detObj2DRaw[numDetObj2D].dopplerIdx = dopplerLine;
            detObj2DRaw[numDetObj2D].speed = (int16_t) (speed * oneQFormat);
            detObj2DRaw[numDetObj2D].range = (uint16_t)(range * oneQFormat);
            /* 4. Note that the peakVal is taken from the sumAbsRange. */
            detObj2DRaw[numDetObj2D].peakVal = sumAbsRange[rangeIdx] >> obj->log2numVirtAnt;
            /* 5. Note that the SNR is taken from the CFAR output. */
            detObj2DRaw[numDetObj2D].rangeSNRdB = cfarDetObjSNR[detIdx2] >> obj->log2numVirtAnt;
            /* 6. Since we have no estimate of the doppler SNR, set it to 0. */
            detObj2DRaw[numDetObj2D].dopplerSNRdB = 0;
            numDetObj2D++;
/* New change to eliminate stationary objects*/
   if(speed > 0)
  {
            detObj2DRaw[numDetObj2D].rangeIdx = rangeIdx;
            detObj2DRaw[numDetObj2D].dopplerIdx = dopplerLine;
            detObj2DRaw[numDetObj2D].speed = (int16_t) (speed * oneQFormat);
            detObj2DRaw[numDetObj2D].range = (uint16_t)(range * oneQFormat);
            /* 4. Note that the peakVal is taken from the sumAbsRange. */
            detObj2DRaw[numDetObj2D].peakVal = sumAbsRange[rangeIdx] >> obj->log2numVirtAnt;
            /* 5. Note that the SNR is taken from the CFAR output. */
            detObj2DRaw[numDetObj2D].rangeSNRdB = cfarDetObjSNR[detIdx2] >> obj->log2numVirtAnt;
            /* 6. Since we have no estimate of the doppler SNR, set it to 0. */
            detObj2DRaw[numDetObj2D].dopplerSNRdB = 0;
            numDetObj2D++;
  }
Does this change cause any problems/effects?does it meet our requirement.
Thanks,
P Tulasi Krishna.
  • P Tulasi Krishna,

    As a quick point of correction, the traffic monitoring demo does not filter out static objects from the output. This is clearly seen in the online documentation on TI's Resource Explorer found here: dev.ti.com/.../. The demo detects cars when they are stopped at an intersection when the cars are stationary.

    Please keep in mind that this demo associates a velocity with each detected point. It is an attribute of each member of the array detObj2DRaw. This would require some additional changes of more than just a simple if statement. I will loop in the developer of this particular lab to provide more information.

    Regards,
    Kyle
  • HI Kyle,
    Thank you .that would help us .

    we thought of below change


    if(speed != 0.0f)
    {
    detObj2DRaw[numDetObj2D].rangeIdx = rangeIdx;
    detObj2DRaw[numDetObj2D].dopplerIdx = dopplerLine;
    detObj2DRaw[numDetObj2D].speed = (int16_t) (speed * oneQFormat);
    detObj2DRaw[numDetObj2D].range = (uint16_t)(range * oneQFormat);
    /* 4. Note that the peakVal is taken from the sumAbsRange. */
    detObj2DRaw[numDetObj2D].peakVal = sumAbsRange[rangeIdx] >> obj->log2numVirtAnt;
    /* 5. Note that the SNR is taken from the CFAR output. */
    detObj2DRaw[numDetObj2D].rangeSNRdB = cfarDetObjSNR[detIdx2] >> obj->log2numVirtAnt;
    /* 6. Since we have no estimate of the doppler SNR, set it to 0. */
    detObj2DRaw[numDetObj2D].dopplerSNRdB = 0;
    numDetObj2D++;
    }

    It is an attribute of each member of the array detObj2DRaw.
    yes.The particular lab developer can guide us with information to achieve this.

    Thank you

    P Tulasi Krishna.