An TLV message example is given as below. I know to get the real coordinator value of x, y and z, will use x / pow(2, xyzQFormat)
Here, I would like to know how to calculate the real peak value in db unit from the peakVal?
Message Example
{
"header": {
"magic_word": [
258,
772,
1286,
1800
],
"version": 50659332,
"totalPacketLen": 192,
"platform": 661058,
"frameNumber": 1422,
"timeCpuCycles": 156183642,
"numDetectedObj": 3,
"numTLVs": 4,
"subFrameNumber": 1
},
/*------------- TLVs --------------*/
"body": [
{
/*------------- 1st TLV (Detected Objects)--------------*/
"header": {
"type": 1,
"length": 34
},
"body": {
"numDetetedObj": 3,
"xyzQFormat": 7,
"data": [
{
"speed": 0,
"peakVal": 3868,
"x": -32,
"y": 101,
"z": -17
},
{
"speed": 0,
"peakVal": 3785,
"x": -45,
"y": 216,
...
Thanks