Distance Measurements

Discussion in 'X4M03' started by Igor.12, Sep 25, 2018.

  1. Igor.12

    Igor.12 New Member

    Hello,

    I saw that we have an exemple (X4XEPDistanceDemo) that allows we change the firmware and receive Distance values.

    But I don't have acess to an Atmel Ice or similar equipment to change the firmware from my X4M03 and use this demo.
    Are there some exemple to convert the data from X4M03 into distance values using python?

    Thank you very much,

    Igor
     
  2. Andrey G

    Andrey G New Member

    You can use `PresenceSingleData.distance`.
     
    Last edited: Sep 26, 2018
  3. Igor.12

    Igor.12 New Member


    How can I use it?

    This code is avaible to my X4M03? or is only X4M300?
    Sorry I am starting now with sensors and python

    Thank you for your reply

    Igor
     
  4. Charlie Shao

    Charlie Shao Moderator Staff Member

    Hi Igor.12,
    `PresenceSingleData.distance` is only avaliable for X4M300.
    X4M03 is embedded software development kit, you really need one ICE debugger for your development.
    There is no ready-to-use distance example for python on the computer, but you can use source code X4XEPDistanceDemo.c from X4XEPDistanceDemo as a reference. It shows the concept of the DSP algorithm to get object distance from radar raw data. I hope you will get some inspiration.
     
  5. Igor.12

    Igor.12 New Member

    Okay, thank you guys.

    I will try here understand more about the DSP concept and maybe in future buy one debugger.

    Thanks