| | |
| | | width: 120px; |
| | | text-align: center |
| | | } |
| | | |
| | | .disable { |
| | | pointer-events: none; |
| | | } |
| | | </style> |
| | | </head> |
| | | |
| | |
| | | <button type="button" id="meipeng_pati_madao" class="btn btn-primary" style="width: 100%;">爬梯马道</button> |
| | | <button type="button" id="meipeng_tiejia" class="btn btn-primary" style="width: 100%;">钢结构架</button> |
| | | <button type="button" id="meipeng_dimian" class="btn btn-primary" style="width: 100%;">煤棚地面</button> |
| | | <!-- <button type="button" id="dou_move" class="btn btn-primary" style="width: 100%;">移动</button> |
| | | <button type="button" id="dou_rote" class="btn btn-primary" style="width: 100%;">旋转</button> |
| | | <button type="button" id="dou_work" class="btn btn-primary" style="width: 100%;">挖煤</button> --> |
| | | |
| | | <button type="button" id="test_btn" class="btn btn-primary" style="width: 100%;">测试</button> |
| | | <button type="button" id="point_btn" class="btn btn-primary" style="width: 100%;">煤堆</button> |
| | | </div> |
| | |
| | | |
| | | // 请求数据库数据,对斗轮机模型进行操作 |
| | | $("#test_btn").click(function () { |
| | | $("#test_btn").addClass("disable"); |
| | | console.log(dou_params) |
| | | if (model_no < dou_params.length - 1) { |
| | | model_no++ |
| | |
| | | let item = dou_params[model_no] |
| | | console.log(item) |
| | | dou_move(item.longitude, item.latitude, item.elevation, item.heading_angle) |
| | | setTimeout(function () { |
| | | $("#test_btn").removeClass("disable"); |
| | | }, 5000); |
| | | }) |
| | | |
| | | |
| | |
| | | |
| | | |
| | | $("#point_btn").click(function () { |
| | | var data_path = 'http://112.74.77.127:9100/hn/pointcloud/hn4.txt' |
| | | var data_path = 'http://112.74.77.127:9100/hn/pointcloud/hn.txt' |
| | | console.log("我点击了") |
| | | $.ajax({ |
| | | url: data_path, |