Skip to content
Snippets Groups Projects
Commit 301482de authored by Hailong Zhu's avatar Hailong Zhu
Browse files

Änderung Triangulation

parent 9ef86458
Branches
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ public class Triangulation {
Point3D beaconPoint3D = modelFactory.createPoint3D();
beaconPoint3D = (Point3D) DataServices.getPoiByIdOrNull((String) key).getPlacing().getPosition().getPoint();
positions[index] = new double[]{beaconPoint3D.getX(), beaconPoint3D.getY()};
distances[index] = Math.sqrt(Math.pow((Double) uwbData.get(key), 2) + Math.pow((beaconPoint3D.getZ() - PositionMonitoring.TRIANGULATION_HEIGHT), 2));
distances[index] = (Double) uwbData.get(key);
index ++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment