# DWM1001 localization origin of coordinate frame

hi, I am using this python script to get the position of my tag and the distance between each anchor and the tag and I was wondering where I could look to find out what the origin of the coordinate frame is? please let me know if I could share any more information. "DIST,3,AN0,CC1C,0.92,0.00,0.00,0.52,AN1,C829,0.64,0.76,0.00,0.49,AN2,CD2D,0.00,0.00,0.00,0.67,POS,0.57,0.31,0.17,44

{“id”: “CC1C”, “x”: “0.92”, “y”: “0.00”, “dist”: “0.52”}
{“id”: “C829”, “x”: “0.64”, “y”: “0.76”, “dist”: “0.49”}
{“id”: “CD2D”, “x”: “0.00”, “y”: “0.00”, “dist”: “0.67”}
{“x”: “0.57”, “y”: “0.31”}" this is an example of what the output looks like and I am trying to figure out how the position of the tag is being calculated. I would appreciate any information on this or where to look for it.

Hi @kimia
it uses least square algorithms to calculate the position.

Cheers
JK

1 Like

hi, thank you for your reply I understand the calculation method however I am mostly questioning what is the frame that the tag’s position is being given in. like here the tag’s x position is 0.57 but what frame is that in reference to? thank you so much for your help. looking forward to hearing from you

Hi @kimia
Im not wire what do you mean with the frame.

The TN do a TWR with surrounding anchors - all distances ends in the TN node. Once it gets all distances then it will calculate its position (if I recall it correctly then this calculation takes about 3.5ms) and then the position is available.

Cheers
JK