Java中的Trilateration示例 [英] Trilateration example in java

查看:51
本文介绍了Java中的Trilateration示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发一个利用RSSI根据信号强度确定位置的程序.有人知道三边测量的Java示例在哪里吗?我在网上找不到任何东西.

I am currently working on a program that utilizes RSSI to determine location based on signal strength. Does anybody know where a working java example is of trilateration? I couldn't find any online.

程序基本上需要输入3个距离,这是从RSSI得出的距离,然后是这三个点的纬度和经度,然后使用二维三边测量确定用户的位置(我忽略了每个信标).

The program will basically need to take in 3 distances, which are the distances derived from the RSSI's and then the latitude and longitude of the three points and then determine the user's location using 2 dimensional trilateration (I'm ignoring the height of each beacon for now).

我在这里看到了一个Python,但是我对Python的了解并不足够.

I saw a Python one on here, but I don't know Python well enough to understand it.

推荐答案

供以后遇到相同问题的人参考.

For future reference for anybody with the same problem.

我只是使用了Girish提供的链接. http://code.google.com/p/talking-points-3/source/browse/trunk/WifiPosition/src/TalkingPoint/thejoo/Trilateration.java?r=109

I just used the link Girish provided. http://code.google.com/p/talking-points-3/source/browse/trunk/WifiPosition/src/TalkingPoint/thejoo/Trilateration.java?r=109

但是请注意,您必须考虑何时坐标是共面的,因为代码中没有考虑这一点.

but be aware you have to account for when coordinates are coplanar as this isn't accounted for in the code.

这篇关于Java中的Trilateration示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆