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.

IWR6843ISK-ODS: Parse TLV python file error

Part Number: IWR6843ISK-ODS
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)))
In my understanding , the xyzqFormat is the power of 2. and that will in turn divide x or y or z. I printed out the values as shown below and I get an xyzQ format as shown below (48472) which leads to an overflow error when calculating X , Y and Z.  I have a feeling that the xyzq format value is wrong . Can someone provide insights into fixing this glitch ? 

Packet ID: 418
Version: 3030003
TLV: 5
Detect Obj: 211
Platform: A6843
Subframe: 0
Detect Obj: 23421
xyzqformat : 48472