lemmingapex / trilateration

Solves a formulation of n-D space trilateration problem using a nonlinear least squares optimizer
MIT License
398 stars 106 forks source link

What are the positions for? #25

Closed MoeBro closed 5 years ago

MoeBro commented 5 years ago

I should have clarified, im using your library along with my own BLE beacons, to use trilateration in order to track my location. If i want to place my beacons inside a room, using the coordinates, how do i know which coordinate belongs to which beacon im using? in this: image

kburfi commented 5 years ago

The positions and distances you copied are an example for input parameters. The example has 4 Positions with x and y components: e.g. {5.0, -6.0} means x=5; y=-6 The distances are the measured distances to each position. This means that both arrays correspond in length in their first dimension.

MoeBro commented 5 years ago

So if i want to use BLE beacons inside a room and find my own location, how could i use the library for that?

kburfi commented 5 years ago

Please keep in mind that this is an issue tracker, not maths class. As you don't seem to have an issue with this library I'm going to close the thread.