|
@@ -1513,22 +1513,24 @@ export default {
|
|
|
"id": message.uavid+'_conflict',
|
|
|
"status": "hide"
|
|
|
});
|
|
|
- if(message.noFlyZone.status != "SAFE"){
|
|
|
- console.log("禁飞区预警",message);
|
|
|
- flyGLTF({
|
|
|
- id:message.id,
|
|
|
- uavid:message.uavid,
|
|
|
- status:message.routeInfoVO.status == 3?"hide":"show",
|
|
|
- //duration:message.time + 100,
|
|
|
- duration:2100,
|
|
|
- point:message.position_cj,
|
|
|
- uavInfo: {
|
|
|
- type:"noFlyZone",
|
|
|
- data:message.routeInfoVO,
|
|
|
- origin:message.routeInfoVO
|
|
|
- }
|
|
|
- });
|
|
|
- }else if(message.routeDeviate.status != "SAFE" && message.routeDeviate.distance * 1 > 8){
|
|
|
+ // if(message.noFlyZone.status != "SAFE"){
|
|
|
+ // console.log("禁飞区预警",message);
|
|
|
+ // flyGLTF({
|
|
|
+ // id:message.id,
|
|
|
+ // uavid:message.uavid,
|
|
|
+ // status:message.routeInfoVO.status == 3?"hide":"show",
|
|
|
+ // //duration:message.time + 100,
|
|
|
+ // duration:2100,
|
|
|
+ // point:message.position_cj,
|
|
|
+ // uavInfo: {
|
|
|
+ // type:"noFlyZone",
|
|
|
+ // data:message.routeInfoVO,
|
|
|
+ // origin:message.routeInfoVO
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }else
|
|
|
+
|
|
|
+ if(message.routeDeviate.status != "SAFE" && message.routeDeviate.distance * 1 > 14){
|
|
|
console.log("偏航异常预警",message);
|
|
|
flyGLTF({
|
|
|
id:message.id,
|
|
@@ -1544,52 +1546,57 @@ export default {
|
|
|
origin:message.routeInfoVO
|
|
|
}
|
|
|
});
|
|
|
- }else if(message.electricityWarning.status != "SAFE"){
|
|
|
- console.log("电量异常预警",message);
|
|
|
- flyGLTF({
|
|
|
- id:message.id,
|
|
|
- uavid:message.uavid,
|
|
|
- status:message.routeInfoVO.status == 3?"hide":"show",
|
|
|
- //duration:message.time + 100,
|
|
|
- duration:2100,
|
|
|
- point:message.position_cj,
|
|
|
- uavInfo: {
|
|
|
- type:"electricityWarning",
|
|
|
- data:message.electricityWarning,
|
|
|
- origin:message.routeInfoVO
|
|
|
- }
|
|
|
- });
|
|
|
- }else if(message.collision.status != "SAFE"){
|
|
|
- console.log("建筑物过近异常信息",message);
|
|
|
- flyGLTF({
|
|
|
- id:message.id,
|
|
|
- uavid:message.uavid,
|
|
|
- status:message.routeInfoVO.status == 3?"hide":"show",
|
|
|
- //duration:message.time + 100,
|
|
|
- duration:2100,
|
|
|
- point:message.position_cj,
|
|
|
- uavInfo: {
|
|
|
- type:"collision",
|
|
|
- data:message.collision,
|
|
|
- origin:message.routeInfoVO
|
|
|
- }
|
|
|
- });
|
|
|
- }else if(message.clearZone.status != "SAFE"){
|
|
|
- console.log("净空区异常预警",message);
|
|
|
- flyGLTF({
|
|
|
- id:message.id,
|
|
|
- uavid:message.uavid,
|
|
|
- status:message.routeInfoVO.status == 3?"hide":"show",
|
|
|
- //duration:message.time + 100,
|
|
|
- duration:2100,
|
|
|
- point:message.position_cj,
|
|
|
- uavInfo: {
|
|
|
- type:"clearZone",
|
|
|
- data:message.clearZone,
|
|
|
- origin:message.routeInfoVO
|
|
|
- }
|
|
|
- });
|
|
|
- }else{
|
|
|
+ }
|
|
|
+ // else if(message.electricityWarning.status != "SAFE"){
|
|
|
+ // console.log("电量异常预警",message);
|
|
|
+ // flyGLTF({
|
|
|
+ // id:message.id,
|
|
|
+ // uavid:message.uavid,
|
|
|
+ // status:message.routeInfoVO.status == 3?"hide":"show",
|
|
|
+ // //duration:message.time + 100,
|
|
|
+ // duration:2100,
|
|
|
+ // point:message.position_cj,
|
|
|
+ // uavInfo: {
|
|
|
+ // type:"electricityWarning",
|
|
|
+ // data:message.electricityWarning,
|
|
|
+ // origin:message.routeInfoVO
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // else if(message.collision.status != "SAFE"){
|
|
|
+ // console.log("建筑物过近异常信息",message);
|
|
|
+ // flyGLTF({
|
|
|
+ // id:message.id,
|
|
|
+ // uavid:message.uavid,
|
|
|
+ // status:message.routeInfoVO.status == 3?"hide":"show",
|
|
|
+ // //duration:message.time + 100,
|
|
|
+ // duration:2100,
|
|
|
+ // point:message.position_cj,
|
|
|
+ // uavInfo: {
|
|
|
+ // type:"collision",
|
|
|
+ // data:message.collision,
|
|
|
+ // origin:message.routeInfoVO
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+
|
|
|
+ // else if(message.clearZone.status != "SAFE"){
|
|
|
+ // console.log("净空区异常预警",message);
|
|
|
+ // flyGLTF({
|
|
|
+ // id:message.id,
|
|
|
+ // uavid:message.uavid,
|
|
|
+ // status:message.routeInfoVO.status == 3?"hide":"show",
|
|
|
+ // //duration:message.time + 100,
|
|
|
+ // duration:2100,
|
|
|
+ // point:message.position_cj,
|
|
|
+ // uavInfo: {
|
|
|
+ // type:"clearZone",
|
|
|
+ // data:message.clearZone,
|
|
|
+ // origin:message.routeInfoVO
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ else{
|
|
|
flyGLTF({
|
|
|
id:message.id,
|
|
|
uavid:message.uavid,
|