|
@@ -487,7 +487,7 @@ function getsqlData(sdkInstance, uwbInstance, bAddModel) {
|
|
|
window.showBenchPos(benchPosList);
|
|
|
setInterval(()=>{
|
|
|
getsqlDataRealTime();
|
|
|
- },30*1000)
|
|
|
+ },60*1000)
|
|
|
}
|
|
|
}, 2 * 1000)
|
|
|
}
|
|
@@ -594,8 +594,8 @@ function getsqlDataRealTime() {
|
|
|
window.benchMeshMap[item.bench_id].position.set(x - 14.7, JSON.parse(JSON.stringify(item.fix_pos_y)), y - 14);
|
|
|
window.benchMeshWaterMap[item.bench_id].position.set(x - 14.7, JSON.parse(JSON.stringify(item.fix_pos_y)) + 10, y - 14);
|
|
|
}
|
|
|
- //var localPosition = new THREE.Vector3(x, y, z);
|
|
|
- var worldPosition = window.uwbInstance.convertLocalToWorld(window.benchMeshMap[item.bench_id].position);
|
|
|
+ var localPosition = new THREE.Vector3(window.benchMeshMap[item.bench_id].position.x,window.benchMeshMap[item.bench_id].position.y,window.benchMeshMap[item.bench_id].position.z);
|
|
|
+ var worldPosition = window.uwbInstance.convertLocalToWorld(localPosition);
|
|
|
var pos = window.sdkInstance.getScreenPosition(worldPosition);
|
|
|
benchPosList.push(
|
|
|
{
|