Skip to content

How can I measure the distance between drones using tdoa3 hybrid mode? #1316

Answered by phUR99
phUR99 asked this question in Q&A
Discussion options

You must be logged in to vote

I found the reason.
There seems to be a problem where the ID is not recognized properly if it is written in string type when writing the ID.
In the code above, I changed the string type to int, and the distance was displayed correctly.

        input("press enter to start the flight")
        scf_t.cf.param.set_value('tdoa3.hmId', 254)
        scf_t.cf.param.set_value('tdoa3.hmAnchLog', 253)
        scf_t.cf.param.set_value('tdoa3.hmTwr', '1')
        scf_t.cf.param.set_value('tdoa3.hmTwrEstPos', '1')
        time.sleep(0.5)
        scf_a.cf.param.set_value('tdoa3.hmId', 253)        
        scf_a.cf.param.set_value('tdoa3.hmAnchLog', 254)
        scf_a.cf.param.set_value('tdoa3.hmTwr', '1…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@phUR99
Comment options

@phUR99
Comment options

@knmcguire
Comment options

@phUR99
Comment options

Answer selected by knmcguire
@knmcguire
Comment options

@knmcguire
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants