|
|
|
@ -200,8 +200,8 @@ async function connectWebSocket() {
|
|
|
|
|
SceneValue.value = 'fallow'
|
|
|
|
|
hasPlane.value = true;
|
|
|
|
|
}
|
|
|
|
|
// 加载和更新碰撞检测图(50帧更新一次)
|
|
|
|
|
if(frameCount>50 && lStore.openDetect){
|
|
|
|
|
// 加载和更新碰撞检测图(50帧更新一次) (只在联网模式下启用)
|
|
|
|
|
if(frameCount>50 && lStore.openDetect && window.navigator.onLine){
|
|
|
|
|
emit('resizeMap', detectDivHeight.value)
|
|
|
|
|
showDetection.value = true
|
|
|
|
|
frameCount = 0
|
|
|
|
@ -285,7 +285,7 @@ function startDrawRoute(routeParams) {
|
|
|
|
|
// result是经纬度坐标数组,需转换为 AirlinePoint数组
|
|
|
|
|
let AirlinePoints = []
|
|
|
|
|
result.forEach((pt,index) => {
|
|
|
|
|
let AirlinePoint = {lon:pt.lon, lat:pt.lat, alt:pt.alt, ch1:routeParams.isClose? 2:0, ch2:0x03, speed:0, nPt:index+1}
|
|
|
|
|
let AirlinePoint = {lon:pt.lon, lat:pt.lat, alt:pt.alt, ch1:routeParams.isClose? 0:2, ch2:0x03, speed:0, nPt:index+1}
|
|
|
|
|
AirlinePoints.push(AirlinePoint)
|
|
|
|
|
})
|
|
|
|
|
AirlinePoints.at(-1).ch2 = 0x01;
|
|
|
|
|