This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
doc:lps:toda3 [2018-06-15 08:08] kristoffer |
doc:lps:toda3 [2018-06-15 08:51] kristoffer |
||
---|---|---|---|
Line 31: | Line 31: | ||
For instance '' | For instance '' | ||
- | ===== Longer range ===== | + | ===== Longer range and lower bitrate |
In this mode the UWB bitrate is lower and the data of messages can be read at a longer distance. The packet rate will be reduced though. | In this mode the UWB bitrate is lower and the data of messages can be read at a longer distance. The packet rate will be reduced though. | ||
Line 42: | Line 42: | ||
It is possible to use a longer preamble, this will also reduce packet rate. There is no compile flag for this setting, it requires some code modifications in the Crazyflie and the anchors. | It is possible to use a longer preamble, this will also reduce packet rate. There is no compile flag for this setting, it requires some code modifications in the Crazyflie and the anchors. | ||
+ | The preamble is used by the anchor radios to detect messages and a longer preamble increase the probability and thus the useful distance. | ||
+ | Note that the radios might detect the preamble but fail at reading the data of the packet (see lower bitrate above). The " | ||
==== The Crazyflie ==== | ==== The Crazyflie ==== | ||
Line 80: | Line 82: | ||
example: '' | example: '' | ||
- | ==== Time of flight ==== | + | ==== Time of flight |
By piping the TDoA 3 data into the TOF tool, the measured anchor to anchor distances will be displayed. By adding the ' | By piping the TDoA 3 data into the TOF tool, the measured anchor to anchor distances will be displayed. By adding the ' | ||
example: '' | example: '' | ||
+ | |||
+ | ==== Setting anchor positions ==== | ||
+ | |||
+ | Anchor positions can be set by the python client but it only supports ids 0-7. If you want to use more anchors there is a tool that can be used. | ||
+ | |||
+ | The tool uses a Crazyflie as a bridge to transmit UWB messages to the anchors. When it is started it transmits positions for all anchors over and over, | ||
+ | |||
+ | The tool is somewhat hackish and could use some updates, for instance the Crazyflie radio address is hardcoded in the script. Be prepared to modify the script... | ||
+ | |||
+ | * Create a file with your anchor positions, see tools/ | ||
+ | * Start the Crazyflie | ||
+ | * Pipe the position file into the tool '' | ||
+ | * Move the Crazyflie close to all anchors to transfer the positions | ||
+ | |||
+ |