I only use 1 anchor and 1 tag. I // all printf only want to get distance from serial port,because lots of printf data make me can't extract distance data easy. But i find if i // printf("%02x%08x", (unsigned int)poll_tx.high8, (unsigned int)poll_tx.low32) and other printf only printf distance 。 twr become very inaccurate . and if i don't // these twr become precision. i want to know why .you can have a try.arnaud wrote: ↑Tue Oct 24, 2017 7:58 am Do you mean that by changing the printf you get different precision? Are you sure you are printing the anchor ID correctly?
For TDoA mode, you can put the node in sniffer mode and switch the sniffer to binary (there is a python script for that). This will give you all the raw packets and they can be used to calculate TDoA. If you are interested I might have some experimental python script to calculate TDoA lying around.
What you are doing in ROS is interesting, are you planning on sharing the work at some point?
i use raspberry and beagebone blue to make car and copter. i want to use uwb to make multi - robot research. so i need to use usb to connect to get distance data for tdoa . if i complete all the work i will share.
i try sniffer mode , can you tell me how to change "%02" to i can identify and rxPacket.payload means?Thank you!