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.

  • TI Thinks Resolved

IWR1443BOOST: perform algorithm on first peak, not highest

Part Number: IWR1443BOOST

Hi,

As i made clear in other threads I want to perform the high accuracy algorithm on the closest object instead of the highest reflective one. All this done in the high accuracy lab.

What i want to do is alter the algorithm that finds the highest peak, to find the closest peak. I believe that in doing so, i will get my desired results the easiest way, and without having to alter the lab itself a lot.

However i can't understand the algorithms/functions responsible for this. Can i get some detailed information on how i would do this?

so i want to replace the highest peak with closest peak, and run the program normally afterwards.

I believe i have to be in function :

void MmwDemo_peakSearch(MmwDemo_DataPathObj *obj)

which directs me to the following function:

void MmwDemo_configPeakSearch_HWA(MmwDemo_DataPathObj *obj)

does the variable 

paramsetIdx

determine that the highest peak should be returned?

if not, what does?

help is very much appreciated

cheers

  • In reply to Michelle Liu:

    I mean i get an detected object while there is none. usually before 1m. This happens nearly every iteration. But when i loop starting at bin 2 the issue disappears.

    cheers
  • In reply to jason Anderson:

    Jason,

    Please make sure you cover all the cases in your function to select the peak, especially the bin at the two ends.

    Thanks and Regards,

    Michelle

  • In reply to Michelle Liu:

    how do i do that? im confused to what you mean. how do i do that?
  • In reply to jason Anderson:

    Jason,

    Just an example, the first bin or the last bin can't be treated the same way as the rest, because it doesn't have neighbor bin on both sides. All corner cases need to be considered when running peak detection algorithm.

    Hope this helps.

    Thanks and Regards,
    Michelle
  • In reply to Michelle Liu:

    I understand that, how would i handle the first and last bin? only compare on one of the sides? Or is there another solution?
  • In reply to jason Anderson:

    It could be discarded since it'll be not accurately due to high pass filter (DC bin) and low path filter (last bins) applied. If you still want to take it into consideration, please compare it with one side neighboring bin.

    Thanks and Regards,
    Michelle
  • In reply to Michelle Liu:

    Hi Michelle,

    I got it working to find peaks and check the magnitude against my threshold.

    How do i set the bin index when i find an object that occupies several bins?

    for example the signal: 3 4 5 6 6 6 5 4 3
    which index do i give to the MmwDemo_processInterpolation() function?
    the middle 6 i assume? or the first?

    other scenario, same issue: 4 5 6 6 5 4
    in this scenario which bin do i give to the MmwDemo_processInterpolation() function?

    basicly even amount of bins occupied by one object vs odd amount of bins occupied by one object, incase the middle bin is to be used for interpolation.

    or should it be the first (highest) bin? How can i generate this signal best? a thick object? I have been unable to simulate that signal.

    Thank you very much,

    Jason
  • In reply to jason Anderson:

    Jason,

    I would choose the middle one, but you may choose different value depends on your test application. In fine peak search, the bin range will be the course fft peak +- 2 bins. Therefore I choose the middle one for higher accuracy. The high accuracy lab is targeted to give the most accurate point for the object and the object was assumed to be big flat surface. And one single point of range is good enough for that. For object with certain depth, the ideal thing is to get a contour but that is not what the high accuracy lab is designed for.

    Thanks and Regards,
    Michelle

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.