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.

AWR1642BOOST: Calculating Azimuth Angle from mmw Demo Data Structure

Part Number: AWR1642BOOST

Greetings,

Recently I was able to extract the serial data over uart for the mmw Demo. I was able to locate the magic number for each packet and extract all information from the header. Additionally, I successfully extracted the range information for every object in a frame. Right now, I'm confused with how to extract the azimuth angle from the data packets. I've searched through the doxygen files and documentation, but I've yet to find anything, at least that I understand. Do you have any insight on how I can calculate the azimuth angle with the information from the detected objects data packets? Also, for calculating the xyz coordinates, is the only required information the Q format and dividing the the coordinate data (converted to decimal) by 2^Qformat? I just want to verify that this is the correct procedure. 

Many thanks,

Lance

  • Hi,

    Will get back to you on Monday

    thank you
    Cesar
  • Cesar,

    Were you able to find anything yet?

    Thanks, Lance Ta

  • Lance,

    This is discussed in the doxygen in the section title "Output information sent to host." Please start from the main doxygen landing page here: C:/ti/mmwave_sdk_01_02_00_05/packages/ti/demo/xwr14xx/mmw/docs/doxygen/html/index.html


    Cheers,
    Akash
  • You have probably read "Data Path - (X,Y) Estimation" in the doxygen documentation from which you can see that azimuth is theta and since you know x,y, you should be able to calculate theta as inverse tan (x/y) [theta is from -90 deg to +90 deg]. You are correct about dividing with 2^Qformat.

    Because x and y are computed from R and theta, if you don't want to do this round-about, then you can modify the demo code to directly ship out the azimuth in lieu of or in addition to x,y but in this case if you are using visualizer to see the demo results, you will have to correspondingly change the visualizer also.