Skip to content

How i can get the distance measurement from the anchors #641

Answered by krichardsson
hssjung asked this question in Q&A
Discussion options

You must be logged in to vote

I assume you are using the Loco system.
To get the distance to an anchor you must use the TWR mode, the distance to the anchors are available as a log variables in
ranging.distance0, ranging.distance1, ranging.distance2 and so on.

If you are using one of the TDoA modes, you can get the difference in distance to the anchors in a pair. Set the desired anchor ids of the pair in parameters tdoaEngine.logId and tdoaEngine.logOthrId. The tdoa value will be available in the log variable tdoaEngine.tdoa. It is only possible to log one pair.

Examples of how to get log data
Examples of setting parameters

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hssjung
Comment options

Answer selected by hssjung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants