User Tools

Site Tools


doc:lps:tdoa

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:lps:tdoa [2017-11-15 17:08]
kristoffer
doc:lps:tdoa [2021-06-24 16:54] (current)
kimberly
Line 1: Line 1:
-==== Experimental TDoA mode ====+<WRAP center round important 60%> 
 +This page has deprecated and will be archived. Please go to [[https://www.bitcraze.io/]]. 
 +</WRAP> 
 +==== Using TDoA mode ====
  
-There has been some work on Flying Crazyflies using TDoA measurements. This is still very experimental and not tested a lot but is is already pushed in our github repos.+<WRAP center round important 60%> 
 +This page is outdated and TDoA is now part of the standard functionality. 
 +</WRAP> 
 + 
 + 
 +The loco positioning system TDoA mode allows a tag, ie. the Crazyflie 2.0, to find its position only by listening to the packets transmitted by the anchors. This has the advantage of not putting any hard-limit to the number of tags since adding tags does not add bandwidth requirement to the positioning radios.
  
-Currently anchor positions are not transmitted with the ranging data from the anchors (as in TWR mode) and the anchor positions must either be hardcoded in the Crazyflie firmware (compile time in locodeck.c) or set using the parameter sub system in run time. When using ROS, the anchor positions are usually set in run time. The examples python scripts in [[https://github.com/bitcraze/crazyflie-lib-python|crazyflie-lib-python]] do not set the anchor positions and assume they are hard coded in the firmware. 
  
 To get your Crazyflie to fly with TDoA position estimation you need to: To get your Crazyflie to fly with TDoA position estimation you need to:
 +  - Flash the latest master branch of the [[https://github.com/bitcraze/lps-node-firmware|lps-node-firmware]] in the anchors.
 +  - Setup your anchors to maximize the size of the convex hull formed by the anchor. This is best achieved by placing 8 anchors on the corners of a [[https://en.wikipedia.org/wiki/Cuboid#Rectangular_cuboid|rectangular cuboid]].
 +  - Configure your system following the [[https://www.bitcraze.io/getting-started-with-the-loco-positioning-system/|LPS getting started guide]].
   - Configure the LPS nodes in TDoA by opening the serial console and pressing "m" for mode and "3" for TDoA mode.   - Configure the LPS nodes in TDoA by opening the serial console and pressing "m" for mode and "3" for TDoA mode.
-  - Set the address of the LPS nodes **from 0 to 7**. TDoA works with up to 8 anchors and they much now be addressed from 0 +  - Compile and use a recent version of the [[https://github.com/bitcraze/crazyflie-firmware|Crazyflie firmware]] and [[https://github.com/bitcraze/crazyflie2-nrf-firmware|Crazyflie 2.0 NRF firmware]] from the master branchThe default build will include TDoA and the Crazyflie will automatically be set in TDoA mode if the TDoA anchors are detected
-  - Compile and flash the Crazyflie firmware with "LPS_TDOA_ENABLE=1" in tools/make/config.mk or on the command line. You must also update LOCODECK_NR_OF_ANCHORS in locodeck.h if you are using more than 6 anchors. Depending on your set up, you might want to set anchor positions as well. +
- +
-The anchor placement is even more important with TDoA than with TWR. The Crazyflie must fly within the 3D [[https://en.wikipedia.org/wiki/Convex_hull|convex hull]] formed by the anchorsFor that reason it is easier to use 8 anchors. With 6 anchors you can place them forming 2 aligned triangles (one on the floor, one in the ceiling). Also since the anchor times are synchronized together it is very important that the anchors have direct line of sight between them.+
  
-If using ROS you can fly with the same launchfile as beforeYou can also try the new "dwm_loc_ekf_swarm_hover.launch" which is already setup for 5 Crazyflies. Just edit the top of the file to set the address and channel of your Crazyflies.+Note that TDoA is much more sensitive to anchor placement than TWR. It is mostly important that you fly within the convex hull formed by the anchors or as close as possible to itGoing out of the convex hull will quickly reduce the positioning accuracy.
  
 +Once TDoA is setup and working, you can fly your Crazyflies using the same scripts both in Python and in ROS as when flying with TWR.
doc/lps/tdoa.1510762139.txt.gz · Last modified: 2017-11-15 17:08 by kristoffer