Indoor-Positioning-System-iBeacons-

  • A4_352160
    了解作者
  • 4.1KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-04-21 02:16
    上传日期
室内定位系统 该项目的主要目的是从Web服务器接收数据,处理接收到的数据并将数据转换为正确的格式,以用于三边测量库。 之后,使用三边测量库执行计算以确定对象在画布窗口中的位置。 先决条件 网络连接 网络浏览器 代码编辑器 三边测量 使用rssiToMeter.js代码将接收到的蓝牙信号强度更改为米。 下面的例子: function calculateDistanceUsingTxP(rssi, txPower) { if (rssi == 0) { return -1.0; } var ratio = rssi*1.0/txPower; if (ratio < 1.0) { return Math.pow(ratio,10); } else { var distance = (0.89976)*Math.pow(ratio,7.7095
Indoor-Positioning-System-iBeacons--master.zip
  • Indoor-Positioning-System-iBeacons--master
  • index.html
    440B
  • server.js
    1.4KB
  • rssiToMeters.js
    281B
  • README.md
    1.1KB
  • trilateration.js
    4.7KB
内容介绍
# Indoor-Positioning-System The main purpose of this project is to receive data from the web server, process the received data and convert data to the correct format, to use for the trilateration library. After that, use the trilateration library to perform calculations to determine the location of the object in the canvas window. ![alt text](http://bits.citrusbyte.com/images/posts/2015-02-23-beacons-trilateration.png) ## Prerequisites * Internet connection * Internet Browser * Code Editor ## Getting Trilateration * Use rssiToMeter.js code, to change received bluetooth signal strength to meters. Example below: ``` function calculateDistanceUsingTxP(rssi, txPower) { if (rssi == 0) { return -1.0; } var ratio = rssi*1.0/txPower; if (ratio < 1.0) { return Math.pow(ratio,10); } else { var distance = (0.89976)*Math.pow(ratio,7.7095) + 0.111; return distance; } } ``` * server.js sends queries to the server. Each time the response is received, the received data is processed to the corret format * trilateration.js this script is responsible for location calculations. Displays the location of an object in an certain size window
评论
    相关推荐