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: AWR1642 x y coordinates calculation

Part Number: AWR1642


Hello,

We are working on the traffic monitoring lab and we have some issue regarding the x y coordinates calculation.
For each detection object in TLV 7 (target list) we are getting 8 bytes of position data - 4 of x and 4 of y . for example:
x - 58 9 245 64
y - 226 191 37 66

After our calculation we are getting the following results:
x- 7.6573
y- 41.4373

We are using this function to calculate:

vargetFloat=function(x1,x2,x3,x4){​​​​​​​​
var data = [x1, x2, x3, x4];
var buf =newArrayBuffer(4);
var view =newDataView(buf);
 
 data.forEach(function(b,i){​​​​​​​​
 view.setUint8(i, b);
}​​​​​​​​);
 
var num = view.getFloat32(0,true);
 
return num;
}​​​​​​​​;

If is this calculation right, is it possible that we are getting output of long range meters like 40 or even 80 when the object is closer then that from the radar?
We are aiming the render this data over a map so we need to be accurate of the position and the distance of the object from the radar.

Thanks,
Avi