Unable to echo position using TDoA

All discussions related to the Loco Positioning system
Post Reply
SlouchyCat
Member
Posts: 30
Joined: Mon Oct 10, 2016 3:56 am

Unable to echo position using TDoA

Post by SlouchyCat »

Dear All,

I was trying to play around with TDoA with 6 anchors using ROS. I configured one crazyflie and launched dwm_loc_ekf_hover.launch, but it didnt give me UWB range readings from anchors when i try to echo the log_range out. I didnt see position of the drones also. May I know how to view raw TDoA ranges using ROS?

Thanks!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Unable to echo position using TDoA

Post by arnaud »

Hi,

TDoA has a different set of variable to debug the ranges: https://github.com/bitcraze/crazyflie-f ... #L223-L231

These ranges are actually distance difference between two anchors. Looking at the code, d0 will contain the distance between previousAnchor and Anchor 0, most of the time previousAnchor will be anchor5 if you run 6 anchors but it could be another one if there has been lost packets.

To get a position you must make sure that the Crazyflie is within the convex hull made by the anchor: the simplest with 6 anchors is to place the anchors forming one triangle on the bottom and one alligned triangle on top, this way you have a convex hull the shape of a triangular prism.
Post Reply