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.

AWR1843BOOST: Feature extraction algorithm implementation on Matlab in Vehicle Occupancy Detection demo

Part Number: AWR1843BOOST

Hello, 

I am implementing feature extraction and zone decision on Matlab but I didn't get same results as the firmware implementation.

but "heat" variable gets wrong value.

Is there somthing wrong in this part of feature extraction on Matlab?

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function feature= ODDemo_Feature_extract(zone_pair,azimuthHeatMap,feature)
global zoneDef power_history power_historydB ph_idx;
oddemo_parms.windowLen= 8;
ODDEMO_MATRIX_ROW_SIZE= 6;
ODDEMO_POWER_INIT_VAL= 48.0;
ODDEMO_MAX_ZONES= 8;
ODDEMO_ZONE_PAIR= (ODDEMO_MAX_ZONES / 2);
oddemo_feature= zeros(ODDEMO_ZONE_PAIR);
oddemo_zone= zoneDef;
global oddemo_parms;
oddemo_meanVec= [30.300249 31.578581 -7.697893 -6.419561 0.306626;
31.655145 32.674334 -6.327176 -5.307987 0.451940;
31.655145 32.674334 -6.327176 -5.307987 0.451940;
24.971068 27.073746 -8.162031 -6.059353 0.101263];
oddemo_stdVec= [11.033930 12.032618 9.021614 8.202547 0.439775;
10.224506 9.922317 7.227706 5.977525 0.483263;
10.224506 9.922317 7.227706 5.977525 0.483263;
10.738818 8.905771 9.023090 8.420234 0.406470];
ODDEMO_MAX_FRAME_HIST= 16;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

This is the part of c code of feature extraction.

Thanks,

  • Hello,

    I need explanation of this line located in oddemo_18xx_dss/oddemo_feature.c in "ODDemo_Feature_extract" routine:

    Fullscreen
    1
    heat = azimuthHeatMap + (ODDEMO_MAX_AZIMUTH * oddemo_zone[zone].range_start);
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    My thought is n number of rows which is equal to oddemo_zone[zone].range_start.

    If oddemo_zone[zone].range_start= 9, then it will point to row number 9 in heatmap matrix and so on.

    is that correct?

  • Hi Mostafa,

    It  would not be possible for me to answer the question at this level of granularity. Our support for the Matlab code for the GUI is somewhat limited. Could you tell me why you are trying to match the Matlab values and the firmware values? I would be able to help with a little more context on your problem.

    Regards,

    Aayush