Trouble getting TDOA values from Loco Positioning system #110
-
Hello, I recently purchased the Loco Positioning systems to add onto an already established ROS environment with motion capture and some upgraded (brushless) Crazyflies with the BigQuad deck. We bought the Loco system to access the TDOA information as we are researching RF localization. I set up my anchors according to the "Getting started with the Loco Positioning system" from https://www.bitcraze.io/documentation/tutorials/getting-started-with-loco-positioning-system/ With that all working, I added the logging variable, tdoaEngine.tdoa to the Crazyflie using the cfclient and wrote a Python script according to the logging variables Bitcraze page. Attached below: But my output is just "0" seen here: I found the logging variable tdoa3.tdoa from the "Logging" section of "TDoA2 VS TDoA3" (https://www.bitcraze.io/documentation/repository/lps-node-firmware/master/functional-areas/tdoa2-vs-tdoa3/) Does anyone have any ideas on what I am doing wrong for either method? Has anyone had success accessing the tdoa values and if so which one? Note: I did update both the Crazyflie firmware and the cfclient today as well. Any help is much appreciate!! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi! The logging in the TDoA engine supports logging data for one anchor pair at a time. You chose which anchor pair to log by setting the parameters tdoaEngine.logId and tdoaEngine.logOthrId to the ids of the two anchors. You will get the TDoA in the tdoaEngine.tdoa log and the TOF between the anchors in tdoaEngine.tof. For example, if you are interested in the anchor pair with ids 3 and 7, set tdoaEngine.logId=3 and tdoaEngine.logOthrId=7. After this you will get the TDoA and TOF values in the log variables mentioned above. |
Beta Was this translation helpful? Give feedback.
-
I needed to add "logconf.start()" under the with statement shown in the file attached |
Beta Was this translation helpful? Give feedback.
-
Was this code to get the current drone position? @flapjack48 |
Beta Was this translation helpful? Give feedback.
I needed to add "logconf.start()" under the with statement shown in the file attached
tdoa_log.txt