Other Parts Discussed in Thread: IWR6843
Hello
I ran the out of box point cloud demo on IWR6843. I recorded the data into a .DAT file. I then used the parsetTLV.py file found in the TI forum to parse the log file. I have attached a snippet of the code below
def
parseDetectedObjects(data, tlvLength):
numDetectedObj, xyzQFormat
=
struct.unpack(
'2H'
, data[:
4
])
print
(
"\tDetect Obj:\t%d "
%
(numDetectedObj))
for
i
in
range
(numDetectedObj):
print
(
"\tObjId:\t%d "
%
(i))
rangeIdx, dopplerIdx, peakVal, x, y, z
=
struct.unpack(
'3H3h'
, data[
4
+
12
*
i:
4
+
12
*
i
+
12
])
print
(
"\t\tDopplerIdx:\t%d "
%
(dopplerIdx))
print
(
"\t\tRangeIdx:\t%d "
%
(rangeIdx))
print
(
"\t\tPeakVal:\t%d "
%
(peakVal))
print
(
"\t\tX:\t\t%07.3f "
%
(x
*
1.0
/
(
1
<< xyzQFormat)))
print
(
"\t\tY:\t\t%07.3f "
%
(y
*
1.0
/
(
1
<< xyzQFormat)))
print
(
"\t\tZ:\t\t%07.3f "
%
(z
*
1.0
/
(
1
<< xyzQFormat)))
Packet ID: 418
Version: 3030003
TLV: 5
Detect Obj: 211
Platform: A6843
Subframe: 0
Detect Obj: 23421
xyzqformat : 48472