Compare commits
2 Commits
2e6be9b4f1
...
prd-contro
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3e2bd9a49e | ||
|
|
8bb41f9162 |
@@ -9,13 +9,13 @@
|
||||
"address": "127.0.0.1",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -51,15 +51,16 @@
|
||||
"url": "127.0.0.1:2005"
|
||||
},
|
||||
"address": "127.0.0.1",
|
||||
"antennaVariation": "0,0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
3,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -86,7 +87,7 @@
|
||||
"defaultProfileIds": [
|
||||
"1"
|
||||
],
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"forbiddenZones": [
|
||||
{
|
||||
"azimuth": 20,
|
||||
@@ -169,12 +170,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -228,12 +229,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -262,7 +263,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "2147483647",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -277,7 +279,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "2147483647",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -294,7 +297,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6336\",\"60.0787 30.6391\",\"60.0765 30.6432\",\"60.0739 30.6473\",\"60.071 30.6494\",\"60.068 30.6513\",\"60.0649 30.6521\",\"60.0618 30.6513\",\"60.0587 30.6494\",\"60.0559 30.6472\",\"60.0533 30.6432\",\"60.0511 30.6391\",\"60.0493 30.6336\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6033\",\"60.0493 30.5979\",\"60.0511 30.5924\",\"60.0533 30.5883\",\"60.0559 30.5843\",\"60.0587 30.5821\",\"60.0618 30.5802\",\"60.0649 30.5794\",\"60.068 30.5802\",\"60.071 30.5821\",\"60.0739 30.5842\",\"60.0765 30.5883\",\"60.0787 30.5924\",\"60.0805 30.5979\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.0089202\",\"0.0138022 0.0116269\",\"0.011603 0.0136825\",\"0.00900388 0.0157386\",\"0.0061044 0.0167927\",\"0.0031049 0.0177467\",\"5.11347e-6 0.0181494\",\"-0.0030951 0.01775\",\"-0.0061956 0.0167989\",\"-0.00899614 0.015697\",\"-0.011597 0.0136921\",\"-0.0137978 0.0116366\",\"-0.0155986 0.00892859\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00621983\",\"-0.0155986 -0.00892821\",\"-0.0137978 -0.0116362\",\"-0.011597 -0.0136917\",\"-0.00899614 -0.0156966\",\"-0.0061956 -0.0167985\",\"-0.0030951 -0.0177496\",\"5.11326e-6 -0.018149\",\"0.0031049 -0.0177463\",\"0.0061044 -0.0167923\",\"0.00900388 -0.0157382\",\"0.011603 -0.0136821\",\"0.0138022 -0.0116265\",\"0.0156014 -0.00891982\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -378,12 +381,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -437,12 +440,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -471,7 +474,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "0",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -486,7 +490,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "0",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -503,7 +508,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6336\",\"60.0787 30.6391\",\"60.0765 30.6432\",\"60.0739 30.6473\",\"60.071 30.6494\",\"60.068 30.6513\",\"60.0649 30.6521\",\"60.0618 30.6513\",\"60.0587 30.6494\",\"60.0559 30.6472\",\"60.0533 30.6432\",\"60.0511 30.6391\",\"60.0493 30.6336\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6033\",\"60.0493 30.5979\",\"60.0511 30.5924\",\"60.0533 30.5883\",\"60.0559 30.5843\",\"60.0587 30.5821\",\"60.0618 30.5802\",\"60.0649 30.5794\",\"60.068 30.5802\",\"60.071 30.5821\",\"60.0739 30.5842\",\"60.0765 30.5883\",\"60.0787 30.5924\",\"60.0805 30.5979\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.0089202\",\"0.0138022 0.0116269\",\"0.011603 0.0136825\",\"0.00900388 0.0157386\",\"0.0061044 0.0167927\",\"0.0031049 0.0177467\",\"5.11347e-6 0.0181494\",\"-0.0030951 0.01775\",\"-0.0061956 0.0167989\",\"-0.00899614 0.015697\",\"-0.011597 0.0136921\",\"-0.0137978 0.0116366\",\"-0.0155986 0.00892859\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00621983\",\"-0.0155986 -0.00892821\",\"-0.0137978 -0.0116362\",\"-0.011597 -0.0136917\",\"-0.00899614 -0.0156966\",\"-0.0061956 -0.0167985\",\"-0.0030951 -0.0177496\",\"5.11326e-6 -0.018149\",\"0.0031049 -0.0177463\",\"0.0061044 -0.0167923\",\"0.00900388 -0.0157382\",\"0.011603 -0.0136821\",\"0.0138022 -0.0116265\",\"0.0156014 -0.00891982\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -587,12 +592,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -646,12 +651,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -680,7 +685,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "4607182418800017408",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -695,7 +701,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "4607182418800017408",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -712,7 +719,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6336\",\"60.0787 30.6391\",\"60.0765 30.6432\",\"60.0739 30.6473\",\"60.071 30.6494\",\"60.068 30.6513\",\"60.0649 30.6521\",\"60.0618 30.6513\",\"60.0587 30.6494\",\"60.0559 30.6472\",\"60.0533 30.6432\",\"60.0511 30.6391\",\"60.0493 30.6336\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6033\",\"60.0493 30.5979\",\"60.0511 30.5924\",\"60.0533 30.5883\",\"60.0559 30.5843\",\"60.0587 30.5821\",\"60.0618 30.5802\",\"60.0649 30.5794\",\"60.068 30.5802\",\"60.071 30.5821\",\"60.0739 30.5842\",\"60.0765 30.5883\",\"60.0787 30.5924\",\"60.0805 30.5979\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.0089202\",\"0.0138022 0.0116269\",\"0.011603 0.0136825\",\"0.00900388 0.0157386\",\"0.0061044 0.0167927\",\"0.0031049 0.0177467\",\"5.11347e-6 0.0181494\",\"-0.0030951 0.01775\",\"-0.0061956 0.0167989\",\"-0.00899614 0.015697\",\"-0.011597 0.0136921\",\"-0.0137978 0.0116366\",\"-0.0155986 0.00892859\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00621983\",\"-0.0155986 -0.00892821\",\"-0.0137978 -0.0116362\",\"-0.011597 -0.0136917\",\"-0.00899614 -0.0156966\",\"-0.0061956 -0.0167985\",\"-0.0030951 -0.0177496\",\"5.11326e-6 -0.018149\",\"0.0031049 -0.0177463\",\"0.0061044 -0.0167923\",\"0.00900388 -0.0157382\",\"0.011603 -0.0136821\",\"0.0138022 -0.0116265\",\"0.0156014 -0.00891982\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -796,12 +803,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -855,12 +862,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -889,7 +896,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "111818694921568",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -904,7 +912,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "111818694921568",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -921,7 +930,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6336\",\"60.0787 30.6391\",\"60.0765 30.6432\",\"60.0739 30.6473\",\"60.071 30.6494\",\"60.068 30.6513\",\"60.0649 30.6521\",\"60.0618 30.6513\",\"60.0587 30.6494\",\"60.0559 30.6472\",\"60.0533 30.6432\",\"60.0511 30.6391\",\"60.0493 30.6336\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6033\",\"60.0493 30.5979\",\"60.0511 30.5924\",\"60.0533 30.5883\",\"60.0559 30.5843\",\"60.0587 30.5821\",\"60.0618 30.5802\",\"60.0649 30.5794\",\"60.068 30.5802\",\"60.071 30.5821\",\"60.0739 30.5842\",\"60.0765 30.5883\",\"60.0787 30.5924\",\"60.0805 30.5979\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.0089202\",\"0.0138022 0.0116269\",\"0.011603 0.0136825\",\"0.00900388 0.0157386\",\"0.0061044 0.0167927\",\"0.0031049 0.0177467\",\"5.11347e-6 0.0181494\",\"-0.0030951 0.01775\",\"-0.0061956 0.0167989\",\"-0.00899614 0.015697\",\"-0.011597 0.0136921\",\"-0.0137978 0.0116366\",\"-0.0155986 0.00892859\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00621983\",\"-0.0155986 -0.00892821\",\"-0.0137978 -0.0116362\",\"-0.011597 -0.0136917\",\"-0.00899614 -0.0156966\",\"-0.0061956 -0.0167985\",\"-0.0030951 -0.0177496\",\"5.11326e-6 -0.018149\",\"0.0031049 -0.0177463\",\"0.0061044 -0.0167923\",\"0.00900388 -0.0157382\",\"0.011603 -0.0136821\",\"0.0138022 -0.0116265\",\"0.0156014 -0.00891982\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -1005,12 +1014,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -1064,12 +1073,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -1098,7 +1107,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "126158551285552",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -1113,7 +1123,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "126158551285552",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -1130,7 +1141,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6336\",\"60.0787 30.6391\",\"60.0765 30.6432\",\"60.0739 30.6473\",\"60.071 30.6494\",\"60.068 30.6513\",\"60.0649 30.6521\",\"60.0618 30.6513\",\"60.0587 30.6494\",\"60.0559 30.6472\",\"60.0533 30.6432\",\"60.0511 30.6391\",\"60.0493 30.6336\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6033\",\"60.0493 30.5979\",\"60.0511 30.5924\",\"60.0533 30.5883\",\"60.0559 30.5843\",\"60.0587 30.5821\",\"60.0618 30.5802\",\"60.0649 30.5794\",\"60.068 30.5802\",\"60.071 30.5821\",\"60.0739 30.5842\",\"60.0765 30.5883\",\"60.0787 30.5924\",\"60.0805 30.5979\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.0089202\",\"0.0138022 0.0116269\",\"0.011603 0.0136825\",\"0.00900388 0.0157386\",\"0.0061044 0.0167927\",\"0.0031049 0.0177467\",\"5.11347e-6 0.0181494\",\"-0.0030951 0.01775\",\"-0.0061956 0.0167989\",\"-0.00899614 0.015697\",\"-0.011597 0.0136921\",\"-0.0137978 0.0116366\",\"-0.0155986 0.00892859\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00621983\",\"-0.0155986 -0.00892821\",\"-0.0137978 -0.0116362\",\"-0.011597 -0.0136917\",\"-0.00899614 -0.0156966\",\"-0.0061956 -0.0167985\",\"-0.0030951 -0.0177496\",\"5.11326e-6 -0.018149\",\"0.0031049 -0.0177463\",\"0.0061044 -0.0167923\",\"0.00900388 -0.0157382\",\"0.011603 -0.0136821\",\"0.0138022 -0.0116265\",\"0.0156014 -0.00891982\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -1214,12 +1225,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -1273,12 +1284,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -1307,7 +1318,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "8315457377388211488",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -1322,7 +1334,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "8315457377388211488",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -1339,7 +1352,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6336\",\"60.0787 30.6391\",\"60.0765 30.6432\",\"60.0739 30.6473\",\"60.071 30.6494\",\"60.068 30.6513\",\"60.0649 30.6521\",\"60.0618 30.6513\",\"60.0587 30.6494\",\"60.0559 30.6472\",\"60.0533 30.6432\",\"60.0511 30.6391\",\"60.0493 30.6336\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6033\",\"60.0493 30.5979\",\"60.0511 30.5924\",\"60.0533 30.5883\",\"60.0559 30.5843\",\"60.0587 30.5821\",\"60.0618 30.5802\",\"60.0649 30.5794\",\"60.068 30.5802\",\"60.071 30.5821\",\"60.0739 30.5842\",\"60.0765 30.5883\",\"60.0787 30.5924\",\"60.0805 30.5979\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.0089202\",\"0.0138022 0.0116269\",\"0.011603 0.0136825\",\"0.00900388 0.0157386\",\"0.0061044 0.0167927\",\"0.0031049 0.0177467\",\"5.11347e-6 0.0181494\",\"-0.0030951 0.01775\",\"-0.0061956 0.0167989\",\"-0.00899614 0.015697\",\"-0.011597 0.0136921\",\"-0.0137978 0.0116366\",\"-0.0155986 0.00892859\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00621983\",\"-0.0155986 -0.00892821\",\"-0.0137978 -0.0116362\",\"-0.011597 -0.0136917\",\"-0.00899614 -0.0156966\",\"-0.0061956 -0.0167985\",\"-0.0030951 -0.0177496\",\"5.11326e-6 -0.018149\",\"0.0031049 -0.0177463\",\"0.0061044 -0.0167923\",\"0.00900388 -0.0157382\",\"0.011603 -0.0136821\",\"0.0138022 -0.0116265\",\"0.0156014 -0.00891982\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -1423,12 +1436,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -1482,12 +1495,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -1516,7 +1529,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "30680773303284125",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -1531,7 +1545,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "30680773303284125",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -1548,7 +1563,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6336\",\"60.0787 30.6391\",\"60.0765 30.6432\",\"60.0739 30.6473\",\"60.071 30.6494\",\"60.068 30.6513\",\"60.0649 30.6521\",\"60.0618 30.6513\",\"60.0587 30.6494\",\"60.0559 30.6472\",\"60.0533 30.6432\",\"60.0511 30.6391\",\"60.0493 30.6336\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6033\",\"60.0493 30.5979\",\"60.0511 30.5924\",\"60.0533 30.5883\",\"60.0559 30.5843\",\"60.0587 30.5821\",\"60.0618 30.5802\",\"60.0649 30.5794\",\"60.068 30.5802\",\"60.071 30.5821\",\"60.0739 30.5842\",\"60.0765 30.5883\",\"60.0787 30.5924\",\"60.0805 30.5979\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":0,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.0089202\",\"0.0138022 0.0116269\",\"0.011603 0.0136825\",\"0.00900388 0.0157386\",\"0.0061044 0.0167927\",\"0.0031049 0.0177467\",\"5.11347e-6 0.0181494\",\"-0.0030951 0.01775\",\"-0.0061956 0.0167989\",\"-0.00899614 0.015697\",\"-0.011597 0.0136921\",\"-0.0137978 0.0116366\",\"-0.0155986 0.00892859\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00621983\",\"-0.0155986 -0.00892821\",\"-0.0137978 -0.0116362\",\"-0.011597 -0.0136917\",\"-0.00899614 -0.0156966\",\"-0.0061956 -0.0167985\",\"-0.0030951 -0.0177496\",\"5.11326e-6 -0.018149\",\"0.0031049 -0.0177463\",\"0.0061044 -0.0167923\",\"0.00900388 -0.0157382\",\"0.011603 -0.0136821\",\"0.0138022 -0.0116265\",\"0.0156014 -0.00891982\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -1588,7 +1603,6 @@
|
||||
},
|
||||
"PelengatorsTaskParams": [
|
||||
{
|
||||
"is_paused": false,
|
||||
"pelengator_task_Antenna": {
|
||||
"field_caption": "",
|
||||
"field_id": "Авто"
|
||||
@@ -1621,7 +1635,6 @@
|
||||
},
|
||||
"PelengatorsTaskParams": [
|
||||
{
|
||||
"is_paused": false,
|
||||
"pelengator_task_Antenna": {
|
||||
"field_caption": "",
|
||||
"field_id": "Авто"
|
||||
@@ -1654,7 +1667,6 @@
|
||||
},
|
||||
"PelengatorsTaskParams": [
|
||||
{
|
||||
"is_paused": false,
|
||||
"pelengator_task_Antenna": {
|
||||
"field_caption": "",
|
||||
"field_id": "Авто"
|
||||
@@ -1730,16 +1742,17 @@
|
||||
"url": "172.22.246.12:2006"
|
||||
},
|
||||
"address": "172.22.246.12",
|
||||
"antennaVariation": "0,0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.064529,
|
||||
30.615309,
|
||||
59.91069,
|
||||
30.65539,
|
||||
0,
|
||||
0,
|
||||
60.064529,
|
||||
30.615309,
|
||||
59.91069,
|
||||
30.65539,
|
||||
0,
|
||||
0,
|
||||
30,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -1768,7 +1781,7 @@
|
||||
"enabled": true,
|
||||
"forbiddenZones": [
|
||||
],
|
||||
"functionZone": "{\"default_radius\":5000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":-1,\"radius\":5000,\"total_zone\":[\"60.1095 30.6153\",\"60.1088 30.6309\",\"60.1067 30.6463\",\"60.1034 30.6604\",\"60.0989 30.6734\",\"60.0934 30.6844\",\"60.087 30.6934\",\"60.0798 30.7\",\"60.0723 30.704\",\"60.0645 30.7054\",\"60.0567 30.704\",\"60.0491 30.6999\",\"60.042 30.6933\",\"60.0356 30.6842\",\"60.03 30.6732\",\"60.0255 30.6602\",\"60.0222 30.6461\",\"60.0202 30.6309\",\"60.0195 30.6153\",\"60.0202 30.5997\",\"60.0222 30.5846\",\"60.0255 30.5704\",\"60.03 30.5575\",\"60.0356 30.5463\",\"60.042 30.5374\",\"60.0491 30.5307\",\"60.0567 30.5266\",\"60.0645 30.5252\",\"60.0723 30.5266\",\"60.0798 30.5306\",\"60.087 30.5373\",\"60.0934 30.5462\",\"60.0989 30.5572\",\"60.1034 30.5702\",\"60.1067 30.5846\",\"60.1088 30.5997\"]}}}",
|
||||
"functionZone": "{\"default_radius\":5000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioReceive\",\"input_id\":-1,\"radius\":5000,\"total_zone\":[\"59.9557 30.6554\",\"59.955 30.6709\",\"59.9529 30.6862\",\"59.9496 30.7003\",\"59.9451 30.7132\",\"59.9396 30.7242\",\"59.9332 30.7331\",\"59.926 30.7397\",\"59.9185 30.7437\",\"59.9107 30.7451\",\"59.9029 30.7437\",\"59.8953 30.7396\",\"59.8882 30.733\",\"59.8818 30.724\",\"59.8762 30.713\",\"59.8717 30.7001\",\"59.8684 30.686\",\"59.8664 30.6709\",\"59.8657 30.6554\",\"59.8664 30.6399\",\"59.8684 30.6248\",\"59.8717 30.6107\",\"59.8762 30.5978\",\"59.8818 30.5867\",\"59.8882 30.5778\",\"59.8953 30.5712\",\"59.9029 30.5671\",\"59.9107 30.5657\",\"59.9185 30.5671\",\"59.926 30.5711\",\"59.9332 30.5777\",\"59.9396 30.5866\",\"59.9451 30.5976\",\"59.9496 30.6105\",\"59.9529 30.6248\",\"59.955 30.6399\"]}}}",
|
||||
"groupId": -1,
|
||||
"groupName": "",
|
||||
"name": "АфС-П РТР",
|
||||
@@ -1837,12 +1850,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.615742206573483,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.615742206573483,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -1896,12 +1909,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.615742206573483,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.615742206573483,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -1930,7 +1943,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "7308901815584698669",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -1945,7 +1959,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "7308901815584698669",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -1962,7 +1977,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6337\",\"60.0787 30.639\",\"60.0765 30.6433\",\"60.0739 30.647\",\"60.071 30.6497\",\"60.068 30.6512\",\"60.0649 30.6518\",\"60.0618 30.6512\",\"60.0587 30.6497\",\"60.0559 30.6469\",\"60.0533 30.6433\",\"60.0511 30.639\",\"60.0493 30.6337\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6035\",\"60.0493 30.5978\",\"60.0511 30.5925\",\"60.0533 30.5882\",\"60.0559 30.5846\",\"60.0587 30.5818\",\"60.0618 30.5803\",\"60.0649 30.5797\",\"60.068 30.5803\",\"60.071 30.5818\",\"60.0739 30.5845\",\"60.0765 30.5882\",\"60.0787 30.5925\",\"60.0805 30.5978\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.00897031\",\"0.0138022 0.0115768\",\"0.011603 0.0137326\",\"0.00900381 0.0155883\",\"0.00610448 0.016943\",\"0.00310487 0.0176965\",\"5.03159e-6 0.017999\",\"-0.00309513 0.0176998\",\"-0.00619552 0.0169493\",\"-0.00899621 0.0155466\",\"-0.011597 0.0137422\",\"-0.0137978 0.0115864\",\"-0.0155986 0.00897875\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00611951\",\"-0.0155986 -0.00897836\",\"-0.0137978 -0.011586\",\"-0.011597 -0.0137419\",\"-0.00899621 -0.0155462\",\"-0.00619552 -0.0169489\",\"-0.00309513 -0.0176995\",\"5.03138e-6 -0.0179986\",\"0.00310487 -0.0176962\",\"0.00610448 -0.0169427\",\"0.00900381 -0.0155879\",\"0.011603 -0.0137323\",\"0.0138022 -0.0115764\",\"0.0156014 -0.00896993\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -2046,12 +2061,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.064979661201995,
|
||||
30.615334510803223,
|
||||
0,
|
||||
0,
|
||||
60.064979661201995,
|
||||
30.615334510803223,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2105,12 +2120,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.064979661201995,
|
||||
30.615334510803223,
|
||||
0,
|
||||
0,
|
||||
60.064979661201995,
|
||||
30.615334510803223,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2139,7 +2154,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "7308901815584698669",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -2154,7 +2170,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "7308901815584698669",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -2171,7 +2188,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"60.065 30.6153\",\"60.0806 30.5974\",\"60.0821 30.6042\",\"60.0829 30.6115\",\"60.0829 30.6192\",\"60.0821 30.6265\",\"60.0806 30.6333\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"1.52588e-7 1.91254e-7\",\"0.0156014 -0.00896993\",\"0.0171006 -0.00556204\",\"0.0179002 -0.00190395\",\"0.0179002 0.00190433\",\"0.0171006 0.00556242\",\"0.0156014 0.00897031\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -2255,12 +2272,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.064733381937565,
|
||||
30.61617136001587,
|
||||
0,
|
||||
0,
|
||||
60.064733381937565,
|
||||
30.61617136001587,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2314,12 +2331,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.064733381937565,
|
||||
30.61617136001587,
|
||||
0,
|
||||
0,
|
||||
60.064733381937565,
|
||||
30.61617136001587,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2348,7 +2365,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "7308901815584698669",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -2363,7 +2381,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "7308901815584698669",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -2380,7 +2399,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"60.0827 30.6162\",\"60.0824 30.6224\",\"60.0816 30.6284\",\"60.0803 30.6342\",\"60.0785 30.6394\",\"60.0763 30.6437\",\"60.0737 30.6474\",\"60.0708 30.6501\",\"60.0678 30.6516\",\"60.0647 30.6522\",\"60.0616 30.6516\",\"60.0585 30.6501\",\"60.0557 30.6473\",\"60.0531 30.6437\",\"60.0509 30.6394\",\"60.0491 30.6342\",\"60.0478 30.6284\",\"60.047 30.6224\",\"60.0467 30.6162\",\"60.047 30.6099\",\"60.0478 30.6039\",\"60.0491 30.5982\",\"60.0509 30.593\",\"60.0531 30.5886\",\"60.0557 30.585\",\"60.0585 30.5822\",\"60.0616 30.5807\",\"60.0647 30.5801\",\"60.0678 30.5807\",\"60.0708 30.5822\",\"60.0737 30.5849\",\"60.0763 30.5886\",\"60.0785 30.593\",\"60.0803 30.5982\",\"60.0816 30.6039\",\"60.0824 30.6099\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.00897031\",\"0.0138022 0.0115768\",\"0.011603 0.0137326\",\"0.00900381 0.0155883\",\"0.00610448 0.016943\",\"0.00310487 0.0176965\",\"5.03159e-6 0.017999\",\"-0.00309513 0.0176998\",\"-0.00619552 0.0169493\",\"-0.00899621 0.0155466\",\"-0.011597 0.0137422\",\"-0.0137978 0.0115864\",\"-0.0155986 0.00897875\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00611951\",\"-0.0155986 -0.00897836\",\"-0.0137978 -0.011586\",\"-0.011597 -0.0137419\",\"-0.00899621 -0.0155462\",\"-0.00619552 -0.0169489\",\"-0.00309513 -0.0176995\",\"5.03138e-6 -0.0179986\",\"0.00310487 -0.0176962\",\"0.00610448 -0.0169427\",\"0.00900381 -0.0155879\",\"0.011603 -0.0137323\",\"0.0138022 -0.0115764\",\"0.0156014 -0.00896993\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -2464,12 +2483,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2523,12 +2542,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2557,7 +2576,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "7308901815584698669",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -2572,7 +2592,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "7308901815584698669",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -2589,7 +2610,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6337\",\"60.0787 30.639\",\"60.0765 30.6433\",\"60.0739 30.647\",\"60.071 30.6497\",\"60.068 30.6512\",\"60.0649 30.6518\",\"60.0618 30.6512\",\"60.0587 30.6497\",\"60.0559 30.6469\",\"60.0533 30.6433\",\"60.0511 30.639\",\"60.0493 30.6337\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6035\",\"60.0493 30.5978\",\"60.0511 30.5925\",\"60.0533 30.5882\",\"60.0559 30.5846\",\"60.0587 30.5818\",\"60.0618 30.5803\",\"60.0649 30.5797\",\"60.068 30.5803\",\"60.071 30.5818\",\"60.0739 30.5845\",\"60.0765 30.5882\",\"60.0787 30.5925\",\"60.0805 30.5978\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.00897031\",\"0.0138022 0.0115768\",\"0.011603 0.0137326\",\"0.00900381 0.0155883\",\"0.00610448 0.016943\",\"0.00310487 0.0176965\",\"5.03159e-6 0.017999\",\"-0.00309513 0.0176998\",\"-0.00619552 0.0169493\",\"-0.00899621 0.0155466\",\"-0.011597 0.0137422\",\"-0.0137978 0.0115864\",\"-0.0155986 0.00897875\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00611951\",\"-0.0155986 -0.00897836\",\"-0.0137978 -0.011586\",\"-0.011597 -0.0137419\",\"-0.00899621 -0.0155462\",\"-0.00619552 -0.0169489\",\"-0.00309513 -0.0176995\",\"5.03138e-6 -0.0179986\",\"0.00310487 -0.0176962\",\"0.00610448 -0.0169427\",\"0.00900381 -0.0155879\",\"0.011603 -0.0137323\",\"0.0138022 -0.0115764\",\"0.0156014 -0.00896993\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -2673,12 +2694,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2732,12 +2753,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2766,7 +2787,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "140359491022592",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -2781,7 +2803,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "140359491022592",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -2798,7 +2821,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6337\",\"60.0787 30.639\",\"60.0765 30.6433\",\"60.0739 30.647\",\"60.071 30.6497\",\"60.068 30.6512\",\"60.0649 30.6518\",\"60.0618 30.6512\",\"60.0587 30.6497\",\"60.0559 30.6469\",\"60.0533 30.6433\",\"60.0511 30.639\",\"60.0493 30.6337\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6035\",\"60.0493 30.5978\",\"60.0511 30.5925\",\"60.0533 30.5882\",\"60.0559 30.5846\",\"60.0587 30.5818\",\"60.0618 30.5803\",\"60.0649 30.5797\",\"60.068 30.5803\",\"60.071 30.5818\",\"60.0739 30.5845\",\"60.0765 30.5882\",\"60.0787 30.5925\",\"60.0805 30.5978\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.00897031\",\"0.0138022 0.0115768\",\"0.011603 0.0137326\",\"0.00900381 0.0155883\",\"0.00610448 0.016943\",\"0.00310487 0.0176965\",\"5.03159e-6 0.017999\",\"-0.00309513 0.0176998\",\"-0.00619552 0.0169493\",\"-0.00899621 0.0155466\",\"-0.011597 0.0137422\",\"-0.0137978 0.0115864\",\"-0.0155986 0.00897875\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00611951\",\"-0.0155986 -0.00897836\",\"-0.0137978 -0.011586\",\"-0.011597 -0.0137419\",\"-0.00899621 -0.0155462\",\"-0.00619552 -0.0169489\",\"-0.00309513 -0.0176995\",\"5.03138e-6 -0.0179986\",\"0.00310487 -0.0176962\",\"0.00610448 -0.0169427\",\"0.00900381 -0.0155879\",\"0.011603 -0.0137323\",\"0.0138022 -0.0115764\",\"0.0156014 -0.00896993\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -2882,12 +2905,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2941,12 +2964,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -2975,7 +2998,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "37",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -2990,7 +3014,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "37",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
@@ -3007,7 +3032,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.628\",\"60.0805 30.6337\",\"60.0787 30.639\",\"60.0765 30.6433\",\"60.0739 30.647\",\"60.071 30.6497\",\"60.068 30.6512\",\"60.0649 30.6518\",\"60.0618 30.6512\",\"60.0587 30.6497\",\"60.0559 30.6469\",\"60.0533 30.6433\",\"60.0511 30.639\",\"60.0493 30.6337\",\"60.048 30.628\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6035\",\"60.0493 30.5978\",\"60.0511 30.5925\",\"60.0533 30.5882\",\"60.0559 30.5846\",\"60.0587 30.5818\",\"60.0618 30.5803\",\"60.0649 30.5797\",\"60.068 30.5803\",\"60.071 30.5818\",\"60.0739 30.5845\",\"60.0765 30.5882\",\"60.0787 30.5925\",\"60.0805 30.5978\",\"60.0818 30.6035\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"0.0180002 1.9115e-7\",\"0.0177003 0.00310696\",\"0.0169007 0.00611367\",\"0.0156014 0.00897031\",\"0.0138022 0.0115768\",\"0.011603 0.0137326\",\"0.00900381 0.0155883\",\"0.00610448 0.016943\",\"0.00310487 0.0176965\",\"5.03159e-6 0.017999\",\"-0.00309513 0.0176998\",\"-0.00619552 0.0169493\",\"-0.00899621 0.0155466\",\"-0.011597 0.0137422\",\"-0.0137978 0.0115864\",\"-0.0155986 0.00897875\",\"-0.0168993 0.00611989\",\"-0.0176997 0.00311028\",\"-0.0179998 1.91357e-7\",\"-0.0176997 -0.0031099\",\"-0.0168993 -0.00611951\",\"-0.0155986 -0.00897836\",\"-0.0137978 -0.011586\",\"-0.011597 -0.0137419\",\"-0.00899621 -0.0155462\",\"-0.00619552 -0.0169489\",\"-0.00309513 -0.0176995\",\"5.03138e-6 -0.0179986\",\"0.00310487 -0.0176962\",\"0.00610448 -0.0169427\",\"0.00900381 -0.0155879\",\"0.011603 -0.0137323\",\"0.0138022 -0.0115764\",\"0.0156014 -0.00896993\",\"0.0169007 -0.00611328\",\"0.0177003 -0.00310658\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -3091,12 +3116,12 @@
|
||||
"address": "192.168.0.93",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -3150,12 +3175,12 @@
|
||||
"antennaVariation": "0,0",
|
||||
"coordinatesData": [
|
||||
5,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
60.06490470683785,
|
||||
30.61574220657348,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -3184,7 +3209,8 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "0",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"default_jamming_task_parameters": {
|
||||
"direction": {
|
||||
@@ -3199,12 +3225,13 @@
|
||||
"frequency_step_hz": "200000",
|
||||
"jump_delay_10ns": "0",
|
||||
"start_freqency_hz": "0",
|
||||
"time_lfm_s": 5e-06
|
||||
"time_lfm_s": 5e-06,
|
||||
"time_step_s": 1
|
||||
},
|
||||
"enable": true,
|
||||
"id": 0,
|
||||
"liter_gain": 100,
|
||||
"name": "ПРД Н2-2:10.1.2.22:1201:tx.0:390-510:800-1065:1065-1210:1150-1280:1490-2000:2000-3500:3500-6100",
|
||||
"name": "БРП #13:10.1.2.22:1201:tx.0:390-510:800-1065:1065-1210:1150-1280:1490-2000:2000-3500:3500-6100",
|
||||
"range": {
|
||||
"from": "433000000",
|
||||
"to": "435000000"
|
||||
@@ -3216,7 +3243,7 @@
|
||||
"timeout_sec": 60
|
||||
},
|
||||
"enabled": true,
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"60.0829 30.6157\",\"60.0826 30.622\",\"60.0818 30.6281\",\"60.0805 30.6338\",\"60.0787 30.6389\",\"60.0765 30.6434\",\"60.0739 30.647\",\"60.0711 30.6496\",\"60.068 30.6512\",\"60.0649 30.6518\",\"60.0618 30.6512\",\"60.0587 30.6496\",\"60.0559 30.6469\",\"60.0533 30.6433\",\"60.0511 30.6389\",\"60.0493 30.6338\",\"60.048 30.6281\",\"60.0472 30.622\",\"60.0469 30.6157\",\"60.0472 30.6095\",\"60.048 30.6034\",\"60.0493 30.5977\",\"60.0511 30.5926\",\"60.0533 30.5881\",\"60.0559 30.5845\",\"60.0587 30.5819\",\"60.0618 30.5802\",\"60.0649 30.5797\",\"60.068 30.5802\",\"60.0711 30.5819\",\"60.0739 30.5845\",\"60.0765 30.5881\",\"60.0787 30.5926\",\"60.0805 30.5977\",\"60.0818 30.6034\",\"60.0826 30.6095\"]}}}",
|
||||
"functionZone": "{\"default_radius\":2000,\"geometries\":{\"0\":{\"desc\":\"\",\"function_type\":\"RadioTransmit\",\"input_id\":-1,\"radius\":2000,\"total_zone\":[\"0.0179864 0\",\"0.0177132 0.00312331\",\"0.0169017 0.00615172\",\"0.0155767 0.00899321\",\"0.0137784 0.0115614\",\"0.0115614 0.0137784\",\"0.00899321 0.0155767\",\"0.00615172 0.0169017\",\"0.00312331 0.0177132\",\"1.10135e-18 0.0179864\",\"-0.00312331 0.0177132\",\"-0.00615172 0.0169017\",\"-0.00899321 0.0155767\",\"-0.0115614 0.0137784\",\"-0.0137784 0.0115614\",\"-0.0155767 0.00899321\",\"-0.0169017 0.00615172\",\"-0.0177132 0.00312331\",\"-0.0179864 2.2027e-18\",\"-0.0177132 -0.00312331\",\"-0.0169017 -0.00615172\",\"-0.0155767 -0.00899321\",\"-0.0137784 -0.0115614\",\"-0.0115614 -0.0137784\",\"-0.00899321 -0.0155767\",\"-0.00615172 -0.0169017\",\"-0.00312331 -0.0177132\",\"-3.30405e-18 -0.0179864\",\"0.00312331 -0.0177132\",\"0.00615172 -0.0169017\",\"0.00899321 -0.0155767\",\"0.0115614 -0.0137784\",\"0.0137784 -0.0115614\",\"0.0155767 -0.00899321\",\"0.0169017 -0.00615172\",\"0.0177132 -0.00312331\"]}}}",
|
||||
"groupId": -1,
|
||||
"impl_properties": {
|
||||
"activatingTimeoutSec": 15,
|
||||
@@ -3249,7 +3276,7 @@
|
||||
]
|
||||
},
|
||||
"ignored_perimeters": {
|
||||
"id_generator": 14471,
|
||||
"id_generator": 14340,
|
||||
"perimeters": [
|
||||
]
|
||||
},
|
||||
@@ -3276,7 +3303,6 @@
|
||||
"task": {
|
||||
"executor": "АфС-П РТР",
|
||||
"executor_type": 1,
|
||||
"is_paused": false,
|
||||
"pelengator_task_Antenna": {
|
||||
"field_caption": "",
|
||||
"field_id": "Авто"
|
||||
@@ -3316,7 +3342,6 @@
|
||||
"task": {
|
||||
"executor": "АфС-П РТР",
|
||||
"executor_type": 1,
|
||||
"is_paused": false,
|
||||
"pelengator_task_Antenna": {
|
||||
"field_caption": "",
|
||||
"field_id": "Авто"
|
||||
@@ -3356,7 +3381,6 @@
|
||||
"task": {
|
||||
"executor": "АфС-П РТР",
|
||||
"executor_type": 1,
|
||||
"is_paused": false,
|
||||
"pelengator_task_Antenna": {
|
||||
"field_caption": "",
|
||||
"field_id": "Авто"
|
||||
@@ -3386,6 +3410,45 @@
|
||||
}
|
||||
],
|
||||
"type_id": "GroupSearchTask"
|
||||
},
|
||||
{
|
||||
"ShowAllSpectrumsInOne": false,
|
||||
"executor": "Эмулятор пеленгатора",
|
||||
"executor_type": 4,
|
||||
"tasks": [
|
||||
{
|
||||
"task": {
|
||||
"executor": "Эмулятор пеленгатора",
|
||||
"executor_type": 1,
|
||||
"pelengator_task_Antenna": {
|
||||
"field_caption": "Антенна 1",
|
||||
"field_id": "1"
|
||||
},
|
||||
"pelengator_task_Attenuator": 10,
|
||||
"pelengator_task_Filter": 10000,
|
||||
"pelengator_task_FilterStep": 1,
|
||||
"pelengator_task_parameters": {
|
||||
"field_autoBaseLine": true,
|
||||
"field_baseline": -80,
|
||||
"field_enabledStreams": [
|
||||
"DirectionVsFreq",
|
||||
"SpectrumDb"
|
||||
],
|
||||
"field_profiles": [
|
||||
"1"
|
||||
],
|
||||
"field_targetSector": "{\"power_range\":{\"max\":0,\"min\":0},\"quality_range\":{\"max\":0,\"min\":0},\"sector\":{\"azimuth_max\":360,\"azimuth_min\":0,\"zenith_max\":110,\"zenith_min\":30}}"
|
||||
},
|
||||
"pelengator_task_show_forbidden_bands": true,
|
||||
"save_snapshots": false,
|
||||
"search_task_band": "1001000000 6000000000",
|
||||
"show_all_signals_on_spectrum": false,
|
||||
"show_target_signals_on_spectrum": true,
|
||||
"type_id": "PelengatorSearchTask"
|
||||
}
|
||||
}
|
||||
],
|
||||
"type_id": "GroupSearchTask"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
BIN
data/Окно частот0.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
@@ -2,16 +2,16 @@
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://djv8fkddcjucs"
|
||||
path="res://.godot/imported/матрица-чисто.png-43b162afe88b693461904505b377fae0.ctex"
|
||||
uid="uid://csxruavk0s40l"
|
||||
path="res://.godot/imported/Окно частот0.png-79ada2e7504614b9bdf58bce1aff61fb.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/матрица-чисто.png"
|
||||
dest_files=["res://.godot/imported/матрица-чисто.png-43b162afe88b693461904505b377fae0.ctex"]
|
||||
source_file="res://data/Окно частот0.png"
|
||||
dest_files=["res://.godot/imported/Окно частот0.png-79ada2e7504614b9bdf58bce1aff61fb.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
BIN
data/Окно.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
@@ -2,16 +2,16 @@
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://busl8rb38lis"
|
||||
path="res://.godot/imported/матрица-конфликт.png-e109709def61ac1d626d23088b556664.ctex"
|
||||
uid="uid://co5xj5uhjfk84"
|
||||
path="res://.godot/imported/Окно.png-ff4b5eac96df23ad4cd8e06dc32f5bb8.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/матрица-конфликт.png"
|
||||
dest_files=["res://.godot/imported/матрица-конфликт.png-e109709def61ac1d626d23088b556664.ctex"]
|
||||
source_file="res://data/Окно.png"
|
||||
dest_files=["res://.godot/imported/Окно.png-ff4b5eac96df23ad4cd8e06dc32f5bb8.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
34
data/Скруглённый квадрат белый.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://djv8fkddcjucs"
|
||||
path="res://.godot/imported/Скруглённый квадрат белый.png-4793c453fe49bfbe7c9affd223331345.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/Скруглённый квадрат белый.png"
|
||||
dest_files=["res://.godot/imported/Скруглённый квадрат белый.png-4793c453fe49bfbe7c9affd223331345.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
data/Скруглённый квадрат серый.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
34
data/Скруглённый квадрат серый.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://fuhhvsa5um4m"
|
||||
path="res://.godot/imported/Скруглённый квадрат серый.png-2111d7338e52a03a41f05d6ffbbc3eb6.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/Скруглённый квадрат серый.png"
|
||||
dest_files=["res://.godot/imported/Скруглённый квадрат серый.png-2111d7338e52a03a41f05d6ffbbc3eb6.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
data/Скруглённый прямоуг салатный.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
34
data/Скруглённый прямоуг салатный.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://busl8rb38lis"
|
||||
path="res://.godot/imported/Скруглённый прямоуг салатный.png-e10b4e8820d45ab6e79c4fba522af854.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/Скруглённый прямоуг салатный.png"
|
||||
dest_files=["res://.godot/imported/Скруглённый прямоуг салатный.png-e10b4e8820d45ab6e79c4fba522af854.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
data/Скруглённый прямоугольник белый.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
34
data/Скруглённый прямоугольник белый.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://3siondd3feev"
|
||||
path="res://.godot/imported/Скруглённый прямоугольник белый.png-758adbfc4fc135ed0095e711422b8c0e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/Скруглённый прямоугольник белый.png"
|
||||
dest_files=["res://.godot/imported/Скруглённый прямоугольник белый.png-758adbfc4fc135ed0095e711422b8c0e.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
BIN
data/Скруглённый прямоугольник серый.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
34
data/Скруглённый прямоугольник серый.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://7ody4v7qy36g"
|
||||
path="res://.godot/imported/Скруглённый прямоугольник серый.png-318eedc8abeb0fd535304028648863b7.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://data/Скруглённый прямоугольник серый.png"
|
||||
dest_files=["res://.godot/imported/Скруглённый прямоугольник серый.png-318eedc8abeb0fd535304028648863b7.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 707 B |
@@ -20,8 +20,8 @@ script_export_mode=0
|
||||
|
||||
[preset.0.options]
|
||||
|
||||
custom_template/debug="/home/user/temp/godot.linuxbsd.template_release.x86_64"
|
||||
custom_template/release="/home/user/temp/godot.linuxbsd.template_release.x86_64"
|
||||
custom_template/debug=""
|
||||
custom_template/release=""
|
||||
debug/export_console_wrapper=0
|
||||
binary_format/embed_pck=true
|
||||
texture_format/s3tc_bptc=true
|
||||
|
||||
@@ -122,7 +122,6 @@ astrakb="*res://scripts/astra-kb.gd"
|
||||
prd="*res://scripts/prd.gd"
|
||||
navi="*res://scripts/navigation.gd"
|
||||
trassa="*res://scripts/trassa.gd"
|
||||
yemstg="*res://scripts/yemstg.gd"
|
||||
|
||||
[debug]
|
||||
|
||||
@@ -169,7 +168,6 @@ folder_colors={
|
||||
"res://scenes/bip/": "blue",
|
||||
"res://scenes/button-flat/": "blue",
|
||||
"res://scenes/button-scale/": "blue",
|
||||
"res://scenes/button-six-state/": "blue",
|
||||
"res://scenes/cell/": "blue",
|
||||
"res://scenes/count-all/": "blue",
|
||||
"res://scenes/count-danger/": "blue",
|
||||
@@ -181,7 +179,6 @@ folder_colors={
|
||||
"res://scenes/frame/": "blue",
|
||||
"res://scenes/grid-buttons-ecm/": "blue",
|
||||
"res://scenes/grid-side-panel/": "blue",
|
||||
"res://scenes/hranges/": "blue",
|
||||
"res://scenes/pribor-afsp/": "purple",
|
||||
"res://scenes/pribor-externals/": "purple",
|
||||
"res://scenes/pribor-prd-k/": "purple",
|
||||
@@ -195,8 +192,8 @@ folder_colors={
|
||||
"res://scenes/контроль/": "green",
|
||||
"res://scenes/настройки/": "green",
|
||||
"res://scenes/работа/": "green",
|
||||
"res://scenes/эмс-тг/": "green",
|
||||
"res://scenes/эмс/": "green",
|
||||
"res://scenes/эмс2/": "green",
|
||||
"res://scripts/": "pink",
|
||||
"res://shaders/": "pink",
|
||||
"res://table/": "blue"
|
||||
@@ -267,8 +264,6 @@ common/enable_object_picking=false
|
||||
|
||||
[rendering]
|
||||
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
shader_compiler/shader_cache/strip_debug=true
|
||||
textures/default_filters/anisotropic_filtering_level=0
|
||||
anti_aliasing/screen_space_roughness_limiter/enabled=false
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cixwl6xi22buo"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c6nve6f8sfyj2" path="res://data/состояние-исправности-0.png" id="1_ufod8"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_ufod8"]
|
||||
script/source = "@tool
|
||||
extends GridContainer
|
||||
|
||||
@export var text_check: Array[String]
|
||||
@export_file var image_states: Array[String]
|
||||
var txr_states: Array[CompressedTexture2D]
|
||||
|
||||
|
||||
@export var state: int = 0:
|
||||
set(val):
|
||||
state = val % image_states.size()
|
||||
if is_inside_tree():
|
||||
val %= txr_states.size()
|
||||
state = val
|
||||
$done.texture = txr_states[val]
|
||||
|
||||
|
||||
@export var pressed: bool = false:
|
||||
set(val):
|
||||
pressed = val
|
||||
if is_inside_tree():
|
||||
$check.button_pressed = pressed
|
||||
|
||||
|
||||
func _enter_tree() -> void:
|
||||
txr_states.clear()
|
||||
for fn in image_states:
|
||||
txr_states.append(load(fn))
|
||||
$done.texture = txr_states[state]
|
||||
$check.button_pressed = pressed
|
||||
|
||||
|
||||
func connect_check(signal_name: StringName, callable: Callable):
|
||||
$check.connect(signal_name, callable)
|
||||
|
||||
|
||||
func disconnect_check(signal_name: StringName, callable: Callable):
|
||||
$check.disconnect(signal_name, callable)
|
||||
|
||||
|
||||
func _on_check_toggled(toggled_on: bool) -> void:
|
||||
$text.text = text_check[int(toggled_on)]
|
||||
"
|
||||
|
||||
[node name="six-state" type="GridContainer"]
|
||||
offset_right = 156.0
|
||||
offset_bottom = 24.0
|
||||
columns = 3
|
||||
script = SubResource("GDScript_ufod8")
|
||||
text_check = Array[String](["Запрещено", "Разрешено"])
|
||||
image_states = Array[String](["uid://c6nve6f8sfyj2", "uid://dnreyfh3cd1k2", "uid://c6booa8753u5t"])
|
||||
|
||||
[node name="done" type="TextureRect" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("1_ufod8")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="text" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 6
|
||||
size_flags_vertical = 6
|
||||
text = "Запрещено"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="check" type="CheckButton" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 8
|
||||
action_mode = 0
|
||||
|
||||
[connection signal="toggled" from="check" to="." method="_on_check_toggled"]
|
||||
@@ -1,101 +0,0 @@
|
||||
@tool
|
||||
|
||||
extends PanelContainer
|
||||
|
||||
## Предназначено для отображения диапазонов на горизонтальной шкале
|
||||
|
||||
@export_range(0.0, 1.0) var gap_top: float = 0.05 ## Зазор сверху
|
||||
@export_range(0.0, 1.0) var gap_bottom: float = 0.05 ## Зазор снизу
|
||||
var ranges_save: Dictionary[StringName, Array] ## <имя диапазона>: [диапазон(x - начало, y - конец), цвет]
|
||||
|
||||
|
||||
@export_file var image_file: String:
|
||||
set(val):
|
||||
image_file = val
|
||||
if is_inside_tree():
|
||||
_enter_tree()
|
||||
|
||||
|
||||
@export var back_color: Color:
|
||||
set(val):
|
||||
back_color = val
|
||||
if is_inside_tree():
|
||||
_enter_tree()
|
||||
|
||||
|
||||
func _enter_tree() -> void:
|
||||
if ResourceLoader.exists(image_file):
|
||||
$grid/image.texture = load(image_file)
|
||||
$grid/canvas.self_modulate = back_color
|
||||
|
||||
|
||||
## Добавляет новый диапазон.
|
||||
func set_range(nm: StringName, x0: float, x1: float, col: Color) -> void:
|
||||
ranges_save[nm] = [Vector2(x0, x1), col]
|
||||
_on_resized()
|
||||
|
||||
|
||||
func set_range_color(nm: StringName, col: Color):
|
||||
if not ranges_save.has(nm):
|
||||
push_error('нет такого диапазона: \"%s\"' % nm)
|
||||
return false
|
||||
ranges_save[nm][1] = col
|
||||
var rng: = get_node_or_null(NodePath(nm))
|
||||
if not rng:
|
||||
push_error('нет такого элемента: \"%s\"' % nm)
|
||||
return false
|
||||
rng.color = col
|
||||
return true
|
||||
|
||||
|
||||
func clear_ranges():
|
||||
var l0 = ranges_save.size()
|
||||
ranges_save.clear()
|
||||
var l1 = ranges_save.size()
|
||||
_on_resized()
|
||||
return l1 < l0
|
||||
|
||||
|
||||
func del_range(nm: StringName) -> bool:
|
||||
var rc = ranges_save.erase(nm)
|
||||
_on_resized()
|
||||
return rc
|
||||
|
||||
|
||||
func _add_range_view(nm: StringName, x0: float, x1: float, col: Color):
|
||||
var rng = Polygon2D.new()
|
||||
var canvas = $grid/canvas
|
||||
var canvas_size = canvas.size
|
||||
var point0 = canvas_size * Vector2(x0, gap_bottom) ## лево низ
|
||||
var point1 = canvas_size * Vector2(x0, 1.0 - gap_top) ## лево верх
|
||||
var point2 = canvas_size * Vector2(x1, 1.0 - gap_top) ## право верх
|
||||
var point3 = canvas_size * Vector2(x1, gap_bottom) ## право низ
|
||||
rng.polygon = [point0, point1, point2, point3]
|
||||
rng.name = nm
|
||||
rng.color = col
|
||||
canvas.add_child(rng)
|
||||
|
||||
|
||||
## Удаляет заданный диапазон.
|
||||
func _del_range_view(nm: StringName) -> void:
|
||||
var canvas: = $grid/canvas
|
||||
var rng: = canvas.get_node(NodePath(nm))
|
||||
canvas.remove_child(rng)
|
||||
rng.queue_free()
|
||||
|
||||
|
||||
func _clear_ranges_view():
|
||||
var canvas: = $grid/canvas
|
||||
var range_views: = canvas.get_children()
|
||||
for rng in range_views:
|
||||
canvas.remove_child(rng)
|
||||
rng.queue_free()
|
||||
|
||||
|
||||
func _on_resized() -> void:
|
||||
_clear_ranges_view()
|
||||
for nm in ranges_save:
|
||||
var range_save = ranges_save[nm]
|
||||
var rng = range_save[0]
|
||||
var col = range_save[1]
|
||||
_add_range_view(nm, rng.x, rng.y, col)
|
||||
@@ -1 +0,0 @@
|
||||
uid://jtio1scc72bl
|
||||
@@ -1,38 +0,0 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://hr55mkcneaer"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://jtio1scc72bl" path="res://scenes/hranges/panel.gd" id="1_pg3d7"]
|
||||
[ext_resource type="Texture2D" uid="uid://c73tjrn8gr00o" path="res://data/Передатчик.png" id="2_ajqhv"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ajqhv"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_56wj8"]
|
||||
corner_radius_top_left = 5
|
||||
corner_radius_top_right = 5
|
||||
corner_radius_bottom_right = 5
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[node name="panel" type="PanelContainer"]
|
||||
offset_right = 400.0
|
||||
offset_bottom = 45.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxEmpty_ajqhv")
|
||||
script = ExtResource("1_pg3d7")
|
||||
back_color = Color(0.601223, 0.601223, 0.601223, 1)
|
||||
|
||||
[node name="grid" type="GridContainer" parent="."]
|
||||
layout_mode = 2
|
||||
columns = 2
|
||||
|
||||
[node name="image" type="TextureRect" parent="grid"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("2_ajqhv")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="canvas" type="PanelContainer" parent="grid"]
|
||||
self_modulate = Color(0.601223, 0.601223, 0.601223, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_56wj8")
|
||||
|
||||
[connection signal="resized" from="." to="." method="_on_resized"]
|
||||
@@ -5,7 +5,7 @@
|
||||
[ext_resource type="PackedScene" uid="uid://lwmw4egynmd1" path="res://scenes/контроль/контроль.tscn" id="3_txp0s"]
|
||||
[ext_resource type="PackedScene" uid="uid://trt0q8th3bn2" path="res://scenes/журнал/журнал.tscn" id="4_cu5k8"]
|
||||
[ext_resource type="PackedScene" uid="uid://dab6loryocc73" path="res://scenes/эмс/эмс.tscn" id="5_u71bh"]
|
||||
[ext_resource type="PackedScene" uid="uid://musb21x2u0xs" path="res://scenes/эмс-тг/эмс-тг.tscn" id="6_41d34"]
|
||||
[ext_resource type="PackedScene" uid="uid://musb21x2u0xs" path="res://scenes/эмс2/эмс2.tscn" id="6_41d34"]
|
||||
[ext_resource type="PackedScene" uid="uid://bnptm4rlp60dq" path="res://scenes/настройки/настройки.tscn" id="6_i8iv3"]
|
||||
[ext_resource type="Script" uid="uid://q7k2yihg057j" path="res://scenes/tabs-switch/lbl_ready.gd" id="8_tidwt"]
|
||||
[ext_resource type="Script" uid="uid://roajn6c6wvc1" path="res://scenes/tabs-switch/тренаж-режим.gd" id="9_41d34"]
|
||||
|
||||
@@ -403,7 +403,7 @@ func _response(result, code, _headers: Array, body: PackedByteArray, req, tile:
|
||||
return
|
||||
|
||||
if Error.OK != image_load_proc.call(body):
|
||||
push_error('не удалось получить изображение (неверный формат?) из \"%s\" (%d байт)' % [tile.url, body.size()])
|
||||
push_error('не удалось получить изображение (неверный формат?) из \"%s\"' % tile.url)
|
||||
return
|
||||
|
||||
tile.texture = ImageTexture.create_from_image(image)
|
||||
@@ -642,6 +642,29 @@ class Tile:
|
||||
self.y = y0
|
||||
self.z = z0
|
||||
|
||||
# Возвращает расстояние в метрах между двумя точками на карте
|
||||
func haversine_m(lat1: float, lon1: float, lat2: float, lon2: float) -> float:
|
||||
# Радиус Земли в метрах
|
||||
const R: = 6372795.0
|
||||
# Преобразование градусов в радианы
|
||||
var rlat1: = deg_to_rad(lat1)
|
||||
var rlon1: = deg_to_rad(lon1)
|
||||
var rlat2: = deg_to_rad(lat2)
|
||||
var rlon2: = deg_to_rad(lon2)
|
||||
# вычисление длины большого круга
|
||||
var cl1: = cos(rlat1)
|
||||
var cl2: = cos(rlat2)
|
||||
var sl1: = sin(rlat1)
|
||||
var sl2: = sin(rlat2)
|
||||
var delta: = rlon2 - rlon1
|
||||
var cdelta: = cos(delta)
|
||||
var sdelta: = sin(delta)
|
||||
var y: = sqrt(pow(cl2 * sdelta, 2.0) + pow(cl1 * sl2 - sl1 * cl2 * cdelta, 2.0))
|
||||
var x: = sl1 * sl2 + cl1 * cl2 * cdelta
|
||||
var ad: = atan2(y, x)
|
||||
var dist: = ad * R
|
||||
return dist
|
||||
|
||||
|
||||
func remove_closest_dot(screen_pos: Vector2) -> bool:
|
||||
var closest_dot = find_at_screen_position(screen_pos)
|
||||
|
||||
@@ -185,7 +185,6 @@ func on_send_http_request(node: Node, time_req: float) -> void:
|
||||
|
||||
func on_receive_response_afp_bpo(node: Node) -> void:
|
||||
node.progress_value = 100
|
||||
node.progress_visible = false
|
||||
|
||||
|
||||
## Прием сигналов о текущем состояниях приборах
|
||||
|
||||
@@ -1,557 +0,0 @@
|
||||
@tool
|
||||
extends Panel
|
||||
|
||||
## Выполнение функций информационного ЭМС (ЭМС-ТГ)
|
||||
|
||||
#region Определяемое при использовании
|
||||
## Индекс -> Имя устройства. Нужен для предсказуемого
|
||||
## порядка отображения: верх->вниз или лево->право.
|
||||
## Имя устройства должно быть взято из settings.gd
|
||||
@export var index_to_unit_names: Array[StringName]
|
||||
## Минимальная частота, МГЦ
|
||||
@export var freq_min: float
|
||||
## Максимальная частота, МГЦ
|
||||
@export var freq_max: float
|
||||
## Время достоверности кластера по умолчанию (если не указано в докладе)
|
||||
@export var default_ttl: float
|
||||
## Цвет диапазона если включен (разрешён)
|
||||
@export_color_no_alpha var color_enabled: Color
|
||||
## Цвет диапазона если выключен (запрещён)
|
||||
@export_color_no_alpha var color_disabled: Color
|
||||
## Прозрачность диапазон на шкале (диапазоны могут накладываться, что бы было видно наложения)
|
||||
@export_range(0, 1.0) var color_alpha: float
|
||||
## Цвет нечётных строк шкалы
|
||||
@export_color_no_alpha var color_odd: Color
|
||||
## Цвет чётных строк шкалы
|
||||
@export_color_no_alpha var color_even: Color
|
||||
## Индекс колонки в таблице для управления работой приёмников
|
||||
@export var column_cmd_rx: int
|
||||
## Индекс колонки в таблице для управления работой передатчиков
|
||||
@export var column_cmd_tx: int
|
||||
## Максимальное количество кластеров на одно устройство
|
||||
@export var max_clasters_per_unit: int
|
||||
## Сообщение пользователю
|
||||
@export var msg_select_unit: String
|
||||
## Сообщение пользователю
|
||||
@export var msg_waiting_data: String
|
||||
#endregion
|
||||
|
||||
#region Загружаемые ресурсы
|
||||
@export_file('*.tscn') var table_headers: Array[String]
|
||||
@export_file('*.tscn') var table_cells: Array[String]
|
||||
@export_file('*.png') var image_file_rx: String
|
||||
@export_file('*.png') var image_file_tx: String
|
||||
@export var table_rows_hight: int
|
||||
@export var table_column_widths: Array[int]
|
||||
@export var table_header_widths: Array[int]
|
||||
@export var table_header_text: Array[String]
|
||||
#endregion
|
||||
|
||||
#region Заполняется автоматически при запуске
|
||||
## Имя устройства -> Индекс устройства
|
||||
var name_to_index: Dictionary[StringName, int]
|
||||
## Имя устройства -> Шкала
|
||||
var name_to_scale: Dictionary[StringName, GridContainer]
|
||||
var table_cell_row: Array
|
||||
## Образец параметров кластера
|
||||
var ref_cls: = {'cname': '<имя>', 'ttl': 1.0, 'daa': 360.0, 'dap': 0.0,
|
||||
'cfb': (freq_min + freq_max) / 2.0,
|
||||
'wfb': freq_max - freq_min}
|
||||
#endregion
|
||||
|
||||
#region Заполняется во время работы
|
||||
var yems_info: Dictionary[StringName, Dictionary] ## Доклады
|
||||
var yems_cmd: Dictionary[StringName, Dictionary] ## Команды
|
||||
## Порядок следования кластеров в таблице.
|
||||
## {имя_устройства: {имя_кластера: индекс_в_таблице}}
|
||||
var cnames_table: Dictionary[StringName, Dictionary]
|
||||
## Текущее выбранное оператором устройство на шкале
|
||||
var selected_unit: Dictionary[StringName, bool]
|
||||
## Состояния кластеров в соответствии с докладами и командами
|
||||
#endregion
|
||||
|
||||
|
||||
## Состояние кластера
|
||||
enum ClasterStatus {
|
||||
DELETED, ## Удалён (время ожидания обновления истекло)
|
||||
RUNNING ## Работает (информация обновляется)
|
||||
}
|
||||
|
||||
|
||||
## Режим управления кластером
|
||||
enum ClasterMode {
|
||||
MANUAL, ## Ручной, управляется операторром
|
||||
AUTO, ## Автоматический, управляется программой
|
||||
IGNORE ## Игнорируемый, не управляется
|
||||
}
|
||||
|
||||
|
||||
## Состояние кластера. Значения должны соответствовать
|
||||
## состояниям [b]six-state-button[/b]
|
||||
enum ClasterResult {
|
||||
WAITING = 0, ## Ожидание даннных
|
||||
DONE = 1, ## Выполнено
|
||||
MISSMATCH = 2 ## Несоответствие
|
||||
}
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
# Инициализировать переменные
|
||||
color_enabled.a = color_alpha
|
||||
color_disabled.a = color_alpha
|
||||
for i in index_to_unit_names.size():
|
||||
var nm: = index_to_unit_names[i]
|
||||
name_to_index[nm] = i
|
||||
yems_info[nm] = {'mcls': []}
|
||||
yems_cmd[nm] = {}
|
||||
cnames_table[nm] = {}
|
||||
selected_unit[nm] = false
|
||||
var btns_scales = get_tree().get_nodes_in_group('кнопки-шкалы')
|
||||
for node in btns_scales:
|
||||
var nm: = node.get_meta('unit_name') as StringName
|
||||
node.connect('toggled', _on_scale_selected.bind(nm))
|
||||
var claster_scales = get_tree().get_nodes_in_group('шкалы-кластеров')
|
||||
for node in claster_scales:
|
||||
var nm: = node.get_meta('unit_name') as StringName
|
||||
name_to_scale[nm] = node
|
||||
|
||||
# Расскрасить чётные-нечётные
|
||||
for node in get_tree().get_nodes_in_group('нечётные'):
|
||||
node.get_node('panel_rx').back_color = color_odd
|
||||
node.get_node('panel_tx').back_color = color_odd
|
||||
for node in get_tree().get_nodes_in_group('чётные'):
|
||||
node.get_node('panel_rx').back_color = color_even
|
||||
node.get_node('panel_tx').back_color = color_even
|
||||
|
||||
# Подключить обработчик для приёма данных
|
||||
for nm in yems_info:
|
||||
var yems_unit = network.get_unit_instance(nm)
|
||||
yems_unit.connect('data_received', on_data_received.bind(nm))
|
||||
|
||||
# Настроить таблицу
|
||||
var header_row: = []
|
||||
for cell_scn in table_headers:
|
||||
header_row.append(load(cell_scn))
|
||||
for cell_scn in table_cells:
|
||||
table_cell_row.append(load(cell_scn))
|
||||
var ctable: = $'таблица/сетка'
|
||||
ctable.set_header(header_row)
|
||||
ctable.set_header_text(table_header_text)
|
||||
ctable.set_header_property(column_cmd_rx, 'image_file', image_file_rx)
|
||||
ctable.set_header_property(column_cmd_tx, 'image_file', image_file_tx)
|
||||
ctable.set_headers_min_size(table_header_widths)
|
||||
ctable.set_columns_min_size(table_column_widths)
|
||||
ctable.set_rows_min_hight(table_rows_hight)
|
||||
ctable.set_header_min_hight(table_rows_hight)
|
||||
ctable.pin_header2()
|
||||
|
||||
# Описатель для отображения импульсного ЭМС:
|
||||
# { идентификатор_входа: { 'node_path': путь_к_узлу, 'pname': название_устройства, 'dcls': { имя_кластера: {параметры_кластера}}}}
|
||||
# Здесь поля txe и rxe - отвечают за конфигурацию:
|
||||
# txe - вход связан с управлением передатчиком
|
||||
# rxe - вход связан с управлением приёмника
|
||||
##TODO: Должна быть возможность для изменения оператором
|
||||
var imp_yems_descr = {
|
||||
0: { 'pname': 'эмс-изделие7', # соответствие названия устройства идентификатору входа
|
||||
'dcls': {'УИЗП1': {'wfb': 300.0, 'cfb': 4000, 'ttl': -1.0, 'txe': false, 'rxe': false}} },
|
||||
1: { 'pname': 'эмс-изделие8', # соответствие названия устройства идентификатору входа
|
||||
'dcls': {'УИЗП2': {'wfb': 200.0, 'cfb': 5000, 'ttl': -1.0, 'txe': false, 'rxe': false}} } }
|
||||
signaller.connect('yems_input_changed', _on_yems_input_changed.bind(imp_yems_descr))
|
||||
for id in imp_yems_descr:
|
||||
var descr = imp_yems_descr[id]
|
||||
var unit_info = yems_info[descr.pname]
|
||||
for cname in descr.dcls:
|
||||
var incls = descr.dcls[cname]
|
||||
var cls = {'cname': cname, 'status': ClasterStatus.RUNNING}
|
||||
cls.merge(incls)
|
||||
unit_info.mcls.append(cls)
|
||||
call_deferred('_on_defer_ready', imp_yems_descr)
|
||||
|
||||
|
||||
func _on_defer_ready(imp_yems_descr: Dictionary):
|
||||
for id in imp_yems_descr:
|
||||
var descr = imp_yems_descr[id]
|
||||
var unit_info = yems_info[descr.pname]
|
||||
on_data_received(unit_info, descr.pname)
|
||||
|
||||
|
||||
## Вызывается при изменении состояния входа ЭМС.[br]
|
||||
## [param id] - идентификатор входа ЭМС[br]
|
||||
## [param state] - новое состояние входа ЭМС[br]
|
||||
## [param imp_yems_sescr] - описатель входов ЭМС[br]
|
||||
func _on_yems_input_changed(id: int, state: int, imp_yems_descr):
|
||||
# Проверить, есть ли в описателе этот вход
|
||||
if not imp_yems_descr.has(id):
|
||||
return
|
||||
var descr = imp_yems_descr[id]
|
||||
# Проверить, есть ли такое устройство
|
||||
if not yems_info.has(descr.pname):
|
||||
return
|
||||
# Получить доклад устройства
|
||||
var unit_info = yems_info[descr.pname]
|
||||
# Вход один, но кластеров может быть несколько,
|
||||
# поэтому нужно пробежать по всем кластерам
|
||||
for cls in unit_info.mcls:
|
||||
var incls = descr.dcls[cls.cname]
|
||||
# Выставить в докладе разрешение работы приёмника
|
||||
# или передатчика соответственно состоянию входа
|
||||
if incls.rxe:
|
||||
cls.rxe = true if state == 1 else false
|
||||
if incls.txe:
|
||||
cls.txe = true if state == 1 else false
|
||||
# Выполнить то же, что и для приёма данных, поэтому:
|
||||
on_data_received(unit_info, descr.pname)
|
||||
|
||||
|
||||
## Вызывается при выборе оператором устройства на шкале
|
||||
## [param val] - состояние кнопки переключателя устройств
|
||||
## [param nm] - имя выбранного устройства
|
||||
func _on_scale_selected(val: bool, nm: StringName):
|
||||
selected_unit[nm] = val
|
||||
if not val:
|
||||
$'таблица/сетка'.clear_rows()
|
||||
cnames_table[nm].clear()
|
||||
$label_msg.text = msg_select_unit
|
||||
$label_msg.show()
|
||||
return
|
||||
var unit_info = yems_info[nm]
|
||||
if not unit_info.mcls: # проверить, есть ли данные
|
||||
$label_msg.text = msg_waiting_data
|
||||
$label_msg.show()
|
||||
return # данных ещё нет, ничего не далать
|
||||
else:
|
||||
$label_msg.hide()
|
||||
var ctable = $'таблица/сетка'
|
||||
var indexes: = cnames_table[nm]
|
||||
update_cvi(nm)
|
||||
var new_indexes = update_indexes(unit_info, indexes)
|
||||
update_table(ctable, new_indexes)
|
||||
map_yems_info_to_table(unit_info, ctable, indexes)
|
||||
connect_cmd_handlers(nm, ctable, new_indexes)
|
||||
|
||||
|
||||
## Обновляет результат выполнения команды оператора
|
||||
## [param nm] - имя устройства
|
||||
func update_cvi(nm: StringName):
|
||||
var unit_info = yems_info[nm]
|
||||
var unit_cmd = yems_cmd[nm]
|
||||
for cls_info in unit_info.mcls:
|
||||
var result_rxe: = ClasterResult.WAITING
|
||||
var result_txe: = ClasterResult.WAITING
|
||||
if unit_cmd.has(cls_info.cname):
|
||||
var cls_cmd = unit_cmd[cls_info.cname]
|
||||
if cls_info.status == ClasterStatus.RUNNING:
|
||||
if cls_cmd.has('rxe'):
|
||||
result_rxe = ClasterResult.DONE \
|
||||
if (cls_info.rxe == cls_cmd.rxe) \
|
||||
else ClasterResult.MISSMATCH
|
||||
else:
|
||||
result_rxe = ClasterResult.DONE
|
||||
if cls_cmd.has('txe'):
|
||||
result_txe = ClasterResult.DONE \
|
||||
if (cls_info.txe == cls_cmd.txe) \
|
||||
else ClasterResult.MISSMATCH
|
||||
else:
|
||||
result_txe = ClasterResult.DONE
|
||||
else:
|
||||
result_rxe = ClasterResult.DONE
|
||||
result_txe = ClasterResult.DONE
|
||||
cls_info['result_rxe'] = result_rxe
|
||||
cls_info['result_txe'] = result_txe
|
||||
|
||||
|
||||
## Подключает обработчики команд к таблице кластеров
|
||||
## [param nm] - имя устройства
|
||||
## [param new_indexes] - новые индексы рядов таблицы
|
||||
## [param cls_table] - таблица для отображения кластеров
|
||||
func connect_cmd_handlers(nm: StringName, ctable: GDTable, new_indexes: Array):
|
||||
for icls in new_indexes:
|
||||
var i_row = icls[0]
|
||||
# Имя устройства и имя кластера
|
||||
var cls = icls[1]
|
||||
# Подключить обработчки разрешения передатчиков
|
||||
var node = ctable.get_node2(column_cmd_tx, i_row)
|
||||
node.connect_check('toggled', _on_user_cmd.bind(nm, cls.cname, 'txe'))
|
||||
# Подключить обработчки разрешения приёмников
|
||||
node = ctable.get_node2(column_cmd_rx, i_row)
|
||||
node.connect_check('toggled', _on_user_cmd.bind(nm, cls.cname, 'rxe'))
|
||||
|
||||
|
||||
## Вызывается при переключении оператором разрешений для кластера
|
||||
func _on_user_cmd(val: bool, nm: StringName, cname: String, param_name: StringName):
|
||||
var unit_cmd = yems_cmd[nm]
|
||||
if cname in unit_cmd:
|
||||
unit_cmd[cname][param_name] = val
|
||||
else:
|
||||
unit_cmd[cname] = {param_name: val}
|
||||
|
||||
|
||||
## Обрабатывает событие [b]data_received[/b]
|
||||
## [param data] - данные принятые от устройства
|
||||
## [param nm] - имя устройства
|
||||
func on_data_received(data: Dictionary, nm: StringName):
|
||||
set_timeouts(nm, data)
|
||||
var unit_info: = yems_info[nm]
|
||||
unit_info_merge(unit_info, data)
|
||||
if not unit_info:
|
||||
# для устройства нет данных
|
||||
return
|
||||
var ctable: GDTable = $'таблица/сетка'
|
||||
var cscale: = name_to_scale[nm] as GridContainer # Шкала устройства
|
||||
var indexes: = cnames_table[nm] # Индексы строк устройства в таблице
|
||||
update_cvi(nm)
|
||||
# Если текущее устройство отображается в таблице,
|
||||
# обновить таблицу новыми данными
|
||||
if selected_unit[nm]:
|
||||
var new_indexes = update_indexes(unit_info, indexes)
|
||||
update_table(ctable, new_indexes)
|
||||
map_yems_info_to_table(unit_info, ctable, indexes)
|
||||
connect_cmd_handlers(nm, ctable, new_indexes)
|
||||
map_yems_info_to_scale(unit_info, cscale)
|
||||
var inters: = find_inters()
|
||||
reset_matrix()
|
||||
map_inters_to_matrix(inters, $'матрица')
|
||||
cmd_to_unit(nm)
|
||||
|
||||
|
||||
## Создаёт новые ряды в таблице
|
||||
func update_table(ctable: GDTable, new_indexes: Array):
|
||||
# Добавить новые ряды. Два прохода нужно потому,
|
||||
# что порядок элементов в словаре не определён.
|
||||
for icls in new_indexes:
|
||||
ctable.add_row(table_cell_row)
|
||||
# Заполнить новые ряды данными
|
||||
for icls in new_indexes:
|
||||
var i_row = icls[0]
|
||||
var cls = icls[1]
|
||||
# Установить высоту ряда (можно пропустить, если нужная высота будет выставлена по умолчанию)
|
||||
ctable.set_row_min_hight(i_row, table_rows_hight)
|
||||
# Установить новый текст
|
||||
ctable.set_node_property(column_cmd_rx, i_row, 'pressed', cls.rxe)
|
||||
ctable.set_node_property(column_cmd_tx, i_row, 'pressed', cls.txe)
|
||||
ctable.set_node_property(column_cmd_rx, i_row, 'state', cls.result_rxe)
|
||||
ctable.set_node_property(column_cmd_tx, i_row, 'state', cls.result_txe)
|
||||
|
||||
|
||||
## Обновляет индексы строк в таблице
|
||||
func update_indexes(unit_info: Dictionary, indexes: Dictionary) -> Array:
|
||||
var new_indexes: = []
|
||||
for cls in unit_info.mcls:
|
||||
# Проверить, есть ли уже такой индекс
|
||||
if indexes.has(cls.cname):
|
||||
continue
|
||||
# Записать индекс нового ряда (связать с именем кластера)
|
||||
var i_row = indexes.size()
|
||||
indexes[cls.cname] = i_row
|
||||
new_indexes.append([i_row, cls])
|
||||
return new_indexes
|
||||
|
||||
|
||||
## Объединяет список кластеров принятых от устройства со списком сохранённым
|
||||
## [param unit_info] - доклад ранее полученный
|
||||
## [param data_rx] - доклад принятый от устройства
|
||||
func unit_info_merge(unit_info: Dictionary, data_rx: Dictionary):
|
||||
var drx: = {}
|
||||
for cls_rx in data_rx.mcls:
|
||||
ref_cls.cname = 'неопр.№%d' % (drx.size() + 1)
|
||||
cls_rx.merge(ref_cls, false) # Объеденить без перезаписи
|
||||
drx[cls_rx.cname] = cls_rx
|
||||
var dinfo: = {}
|
||||
for cls in unit_info.mcls:
|
||||
dinfo[cls.cname] = cls
|
||||
dinfo.merge(drx, true)
|
||||
unit_info.merge(data_rx, true)
|
||||
unit_info.mcls = dinfo.values()
|
||||
|
||||
|
||||
## Отправляет команду в сетевой стек
|
||||
## [param nm] - имя устройства
|
||||
func cmd_to_unit(nm: StringName):
|
||||
var unit_yemstg: = network.get_unit_instance(nm)
|
||||
# Проверить, что сетевой стек отправил предидущую команду
|
||||
if unit_yemstg.cmd_state != unit.Unit.CmdState.DONE:
|
||||
return
|
||||
# Сформировать команду из докладов (данных принятых из сети от устройств)
|
||||
var unit_info_copy = yems_info[nm].duplicate(true)
|
||||
var unit_cmd = yems_cmd[nm]
|
||||
unit_info_copy.mtype = 'cmd'
|
||||
# Выбрать только работающие кластеры (время которых ещё не истекло)
|
||||
var mcls = unit_info_copy.mcls.filter(func(c): return c.status == ClasterStatus.RUNNING)
|
||||
for cls_info in mcls:
|
||||
# Если для этого кластера есть команда оператора ...
|
||||
if unit_cmd.has(cls_info.cname):
|
||||
# ... переписать значениями из команды оператора
|
||||
var cmd_cls = unit_cmd[cls_info.cname]
|
||||
cls_info.rxe = unit_cmd.get('rxe', cls_info.rxe)
|
||||
cls_info.txe = unit_cmd.get('txe', cls_info.txe)
|
||||
# Передать команду сетевому стеку
|
||||
unit_yemstg.cmd.merge(unit_info_copy, true)
|
||||
unit_yemstg.cmd_state = unit.Unit.CmdState.SEND
|
||||
|
||||
|
||||
## Запускает таймер достоверности кластера
|
||||
## [param nm] - имя устройства
|
||||
## [param unit_info] - доклады устройства
|
||||
func set_timeouts(nm: StringName, unit_info: Dictionary):
|
||||
for cls in unit_info.mcls:
|
||||
var timer_name = NodePath('%s_%s' % [nm, cls.cname])
|
||||
var timer = get_node_or_null(timer_name)
|
||||
cls['status'] = ClasterStatus.RUNNING
|
||||
if cls.ttl < 0.0:
|
||||
continue
|
||||
if not timer:
|
||||
timer = Timer.new()
|
||||
timer.name = timer_name
|
||||
timer.one_shot = true
|
||||
timer.connect('timeout', _on_timeout_ttl.bind(nm, cls.cname))
|
||||
add_child(timer)
|
||||
timer.start(cls.ttl)
|
||||
|
||||
|
||||
## Обработчик истечения времени достоверности кластера
|
||||
## [param nm] - имя устройства
|
||||
## [param cname] - имя кластера
|
||||
func _on_timeout_ttl(nm: StringName, cname: StringName):
|
||||
var timer_name = NodePath('%s_%s' % [nm, cname])
|
||||
var timer = get_node_or_null(timer_name)
|
||||
if timer:
|
||||
remove_child(timer)
|
||||
timer.queue_free()
|
||||
var unit_info = yems_info[nm]
|
||||
for cls in unit_info.mcls:
|
||||
if cname == cls.cname:
|
||||
cls.status = ClasterStatus.DELETED
|
||||
cls.result_rxe = ClasterResult.WAITING
|
||||
cls.result_txe = ClasterResult.WAITING
|
||||
var ctable: GDTable = $'таблица/сетка'
|
||||
var indexes: = cnames_table[nm]
|
||||
if indexes:
|
||||
map_yems_info_to_table(unit_info, ctable, indexes)
|
||||
var claster_scale: = name_to_scale[nm] as GridContainer
|
||||
map_yems_info_to_scale(unit_info, claster_scale)
|
||||
reset_matrix()
|
||||
|
||||
|
||||
## Сбрасывает элементы матрицы в исходное состояние
|
||||
func reset_matrix():
|
||||
var nodes = get_tree().get_nodes_in_group('матрица-к')
|
||||
for node in nodes:
|
||||
node.button_pressed = false
|
||||
|
||||
|
||||
## Отображает пересечения на матрице
|
||||
## [param inters] - пересечения
|
||||
## [param matrix] - матрица
|
||||
func map_inters_to_matrix(inters: Array, matrix: GridContainer) -> void:
|
||||
var nodes = matrix.get_children()
|
||||
for item in inters:
|
||||
var tx_unit_name = item[0]
|
||||
var rx_unit_name = item[1]
|
||||
var i_col = 1 + name_to_index[tx_unit_name] # (1 +) - одна колонка для значков приёмников
|
||||
var i_row = 1 + name_to_index[rx_unit_name] # (1 +) - один ряд для значков передатчиков
|
||||
var idx = i_col + i_row * matrix.columns # последовательный индекс в GridContainer
|
||||
var node = nodes[idx] # Искомый элемент
|
||||
node.button_pressed = true
|
||||
|
||||
|
||||
## Отображает кластеры в таблицу
|
||||
## [param unit_info] - доклад от устройства
|
||||
## [param ctable] - таблица
|
||||
## [param indexes] - индексы в таблице
|
||||
func map_yems_info_to_table(unit_info: Dictionary, ctable: GDTable, indexes: Dictionary):
|
||||
# Обойти все кластеры устройства
|
||||
for cls in unit_info.mcls:
|
||||
# Строки для заполнения ряда
|
||||
var status_str: = 'Активен' if cls.status == ClasterStatus.RUNNING else 'Удалён'
|
||||
var row_text: = [cls.cname, status_str, '%.1f' % cls.ttl, '%.1f' % cls.daa, '%.1f' % cls.dap, '%.1f-%.1f' % [cls.cfb - cls.wfb / 2.0, cls.cfb + cls.wfb / 2.0]]
|
||||
# Получить индекс строки кластера в таблице
|
||||
var i_row = indexes[cls.cname]
|
||||
# Установить новый текст
|
||||
ctable.set_row_text(i_row, row_text)
|
||||
# Результат выполнения
|
||||
ctable.set_node_property(column_cmd_rx, i_row, 'state', cls.result_rxe)
|
||||
ctable.set_node_property(column_cmd_tx, i_row, 'state', cls.result_txe)
|
||||
|
||||
|
||||
## Находит пересечения диапазонов всех устройств и кластеров
|
||||
func find_inters() -> Array:
|
||||
var result = []
|
||||
var all_clusters = []
|
||||
# Собираем все кластеры из всех устройств в один массив
|
||||
for nm in yems_info:
|
||||
# nm - имя устройства
|
||||
var unit_data = yems_info[nm]
|
||||
if not unit_data: continue
|
||||
var clasters = unit_data.mcls.filter \
|
||||
(func(c): return c.status == ClasterStatus.RUNNING)
|
||||
for cls in clasters:
|
||||
# cls - один кластер
|
||||
var cfb = float(cls.cfb)
|
||||
var wfb = float(cls.wfb) / 2.0
|
||||
# расчёт границ частотных диапазонов
|
||||
var freq_min1 = cfb - wfb
|
||||
var freq_max1 = cfb + wfb
|
||||
all_clusters.append([nm, cls.cname, freq_min1, freq_max1, cls.txe, cls.rxe])
|
||||
|
||||
for i in all_clusters.size():
|
||||
var cl1 = all_clusters[i]
|
||||
var dev1 = cl1[0]
|
||||
var name1 = cl1[1]
|
||||
var min1 = cl1[2]
|
||||
var max1 = cl1[3]
|
||||
var txe1 = cl1[4]
|
||||
var rxe1 = cl1[5]
|
||||
# Сравниваем текущий кластер со всеми последующими,
|
||||
# чтобы избежать дублей и самопересечений
|
||||
for j in all_clusters.size():
|
||||
var cl2 = all_clusters[j]
|
||||
var dev2 = cl2[0]
|
||||
var name2 = cl2[1]
|
||||
var min2 = cl2[2]
|
||||
var max2 = cl2[3]
|
||||
var txe2 = cl2[4]
|
||||
var rxe2 = cl2[5]
|
||||
# Если нет пары TR(RT) то пропускаем эту комбинацию
|
||||
if not ((txe1 and rxe2) or (rxe1 and txe2)):
|
||||
continue
|
||||
# Проверка на пересечение диапазонов, пересечение
|
||||
# есть если начало одного диапазона меньше конца другого
|
||||
if max1 > min2 and max2 > min1:
|
||||
#Вычисляем точные границы пересечения
|
||||
var inter_start = max(min1, min2)
|
||||
var inter_end = min(max1, max2)
|
||||
# Формируем результат в требуемом формате
|
||||
result.append([dev1, dev2, name1, name2, inter_start, inter_end])
|
||||
return result
|
||||
|
||||
|
||||
## Отображает кластеры на шкале
|
||||
## [param unit_info] - доклад устройства
|
||||
## [param cscale] - шкала кластера
|
||||
func map_yems_info_to_scale(unit_info: Dictionary, cscale: GridContainer):
|
||||
# Обойти все кластеры устройства
|
||||
for cls in unit_info.mcls:
|
||||
# Преобразовать диапазоны частот в диапазоны отображения
|
||||
var c: = remap(cls.cfb, freq_min, freq_max, 0.0, 1.0)
|
||||
var w: = remap(cls.wfb, freq_min * 0.5, freq_max * 0.5, 0.0, 0.5)
|
||||
# Чтобы диапазон всегда был виден, даже если он слишком узкий
|
||||
w = clampf(w, 0.005, 0.5)
|
||||
# Отсечь значения по границам
|
||||
var l: = clampf(c - w, 0.0, 1.0)
|
||||
var h: = clampf(c + w, 0.0, 1.0)
|
||||
# Получить шкалу приёмника
|
||||
var scale_rx: = cscale.get_node('panel_rx')
|
||||
# Получить шкалу передатчика
|
||||
var scale_tx: = cscale.get_node('panel_tx')
|
||||
# Диапазон работает (информация обновляется)
|
||||
if cls.status == ClasterStatus.RUNNING:
|
||||
# Отобразить диапазон приёмника, в соответствии с разрешением
|
||||
var color_rxe: = color_enabled if cls.rxe else color_disabled
|
||||
scale_rx.set_range(cls.cname, l, h, color_rxe)
|
||||
# Отобразить диапазон передатчика, в соответствии с разрешением
|
||||
var color_txe: = color_enabled if cls.txe else color_disabled
|
||||
scale_tx.set_range(cls.cname, l, h, color_txe)
|
||||
# Диапазон удалён (информация не обновляется)
|
||||
elif cls.status == ClasterStatus.DELETED:
|
||||
scale_rx.del_range(cls.cname)
|
||||
scale_tx.del_range(cls.cname)
|
||||
@@ -1,877 +0,0 @@
|
||||
[gd_scene load_steps=23 format=3 uid="uid://musb21x2u0xs"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bvlqgv7aapebl" path="res://scenes/эмс-тг/эмс-тг.gd" id="1_b7tfl"]
|
||||
[ext_resource type="Texture2D" uid="uid://djv8fkddcjucs" path="res://data/матрица-чисто.png" id="2_s28jr"]
|
||||
[ext_resource type="Texture2D" uid="uid://busl8rb38lis" path="res://data/матрица-конфликт.png" id="3_its7t"]
|
||||
[ext_resource type="Script" uid="uid://c5pq0hbrij34d" path="res://table/table.gd" id="4_bhff3"]
|
||||
[ext_resource type="PackedScene" uid="uid://hr55mkcneaer" path="res://scenes/hranges/panel.tscn" id="5_6hay3"]
|
||||
[ext_resource type="Texture2D" uid="uid://docnrxrm2f022" path="res://data/Угловой квадрат3.png" id="6_a0vpj"]
|
||||
[ext_resource type="Texture2D" uid="uid://cxrggrvx6l22q" path="res://data/Квадрат марс ОР-63.png" id="7_xr3ub"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3qui21aom1ac" path="res://data/Квадрат марс 454.png" id="8_saoyo"]
|
||||
[ext_resource type="Texture2D" uid="uid://36xjgea2n22q" path="res://data/Квадрат марс ГО.png" id="9_bqil1"]
|
||||
[ext_resource type="Texture2D" uid="uid://by6a12oahbg82" path="res://data/Квадрат марс РЛС1.png" id="10_ggqgc"]
|
||||
[ext_resource type="Texture2D" uid="uid://pfoscstbm025" path="res://data/эмс-бланк-перем.png" id="10_wdb1k"]
|
||||
[ext_resource type="Texture2D" uid="uid://dwgqofj6yae1v" path="res://data/Квадрат марс РЛС2.png" id="11_xothm"]
|
||||
[ext_resource type="Texture2D" uid="uid://dsuiytxdnole7" path="res://data/Квадрат марс с трубкой.png" id="12_4rjt3"]
|
||||
[ext_resource type="Texture2D" uid="uid://d3v1r4r62na8" path="res://data/Квадрат салатный ОР-63.png" id="13_g0j2q"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1kuhj03yigih" path="res://data/Квадрат салатный 454.png" id="14_crrpm"]
|
||||
[ext_resource type="Texture2D" uid="uid://cyb60nh23ys6k" path="res://data/Квадрат салатный ГО.png" id="15_0dspi"]
|
||||
[ext_resource type="Texture2D" uid="uid://ddm55bo28sxcs" path="res://data/Квадрат салатный РЛС1.png" id="16_6042y"]
|
||||
[ext_resource type="Texture2D" uid="uid://dneqjcul4ipub" path="res://data/Квадрат салатный РЛС2.png" id="17_gvsi1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cw8sd7v5f31ww" path="res://data/Квадрат салатный с трубкой.png" id="18_p3gp1"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wdb1k"]
|
||||
bg_color = Color(0.314316, 0.314316, 0.314316, 1)
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_niy1n"]
|
||||
|
||||
[sub_resource type="ButtonGroup" id="ButtonGroup_vwsbs"]
|
||||
allow_unpress = true
|
||||
|
||||
[node name="эмс-тг" type="Panel"]
|
||||
offset_top = 35.0
|
||||
offset_bottom = 35.0
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_wdb1k")
|
||||
script = ExtResource("1_b7tfl")
|
||||
index_to_unit_names = Array[StringName]([&"эмс-ор63", &"эмс-454", &"эмс-го", &"эмс-рлс1", &"эмс-рлс2", &"эмс-ннвс", &"эмс-изделие7", &"эмс-изделие8"])
|
||||
freq_min = 300.0
|
||||
freq_max = 6000.0
|
||||
default_ttl = 2.0
|
||||
color_enabled = Color(0.898039, 0.458824, 0.239216, 0.7)
|
||||
color_disabled = Color(0.601223, 0.601223, 0.601223, 0.7)
|
||||
color_alpha = 0.7
|
||||
color_odd = Color(0.31863, 0.32773, 0.327729, 1)
|
||||
color_even = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
column_cmd_rx = 6
|
||||
column_cmd_tx = 7
|
||||
max_clasters_per_unit = 32
|
||||
msg_select_unit = "Выберите устройство"
|
||||
msg_waiting_data = "Ожидание данных"
|
||||
table_headers = Array[String](["uid://ch14g46swx74h", "uid://ch14g46swx74h", "uid://ch14g46swx74h", "uid://ch14g46swx74h", "uid://ch14g46swx74h", "uid://ch14g46swx74h", "uid://cymcld4mjmlhj", "uid://cymcld4mjmlhj"])
|
||||
table_cells = Array[String](["uid://dwphmxstaxn4v", "uid://dwphmxstaxn4v", "uid://dwphmxstaxn4v", "uid://dwphmxstaxn4v", "uid://dwphmxstaxn4v", "uid://dwphmxstaxn4v", "uid://cixwl6xi22buo", "uid://cixwl6xi22buo"])
|
||||
image_file_rx = "uid://c6etralq2tvxg"
|
||||
image_file_tx = "uid://c73tjrn8gr00o"
|
||||
table_rows_hight = 32
|
||||
table_column_widths = Array[int]([133, 133, 133, 133, 133, 133, 133, 133])
|
||||
table_header_widths = Array[int]([136, 136, 136, 136, 136, 136, 136, 136])
|
||||
table_header_text = Array[String](["Кластер", "Состояние", "Время", "Азимут", "Угол места", "Диапазон", "Приём", "Передача"])
|
||||
|
||||
[node name="таблица" type="ScrollContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 20.0
|
||||
offset_top = 765.0
|
||||
offset_right = 1180.0
|
||||
offset_bottom = 1145.0
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_niy1n")
|
||||
draw_focus_border = true
|
||||
vertical_scroll_mode = 2
|
||||
|
||||
[node name="сетка" type="GridContainer" parent="таблица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
columns = 8
|
||||
script = ExtResource("4_bhff3")
|
||||
|
||||
[node name="шкала" type="GridContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 20.0
|
||||
offset_top = 40.0
|
||||
offset_right = 1668.0
|
||||
offset_bottom = 734.0
|
||||
scale = Vector2(0.95, 0.95)
|
||||
columns = 2
|
||||
|
||||
[node name="label0" type="Button" parent="шкала" groups=["кнопки-шкалы"]]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 7
|
||||
toggle_mode = true
|
||||
action_mode = 0
|
||||
button_group = SubResource("ButtonGroup_vwsbs")
|
||||
text = "ОР-63"
|
||||
icon = ExtResource("7_xr3ub")
|
||||
icon_alignment = 1
|
||||
vertical_icon_alignment = 0
|
||||
expand_icon = true
|
||||
metadata/unit_name = &"эмс-ор63"
|
||||
|
||||
[node name="sub0" type="GridContainer" parent="шкала" groups=["чётные", "шкалы-кластеров"]]
|
||||
self_modulate = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
metadata/unit_name = &"эмс-ор63"
|
||||
|
||||
[node name="panel_rx" parent="шкала/sub0" instance=ExtResource("5_6hay3")]
|
||||
self_modulate = Color(0.830335, 0.830335, 0.830335, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c73tjrn8gr00o"
|
||||
back_color = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
|
||||
[node name="panel_tx" parent="шкала/sub0" instance=ExtResource("5_6hay3")]
|
||||
self_modulate = Color(0.830335, 0.830335, 0.830335, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c6etralq2tvxg"
|
||||
back_color = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
|
||||
[node name="label1" type="Button" parent="шкала" groups=["кнопки-шкалы"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 5
|
||||
size_flags_vertical = 7
|
||||
toggle_mode = true
|
||||
action_mode = 0
|
||||
button_group = SubResource("ButtonGroup_vwsbs")
|
||||
text = "454"
|
||||
icon = ExtResource("8_saoyo")
|
||||
icon_alignment = 1
|
||||
vertical_icon_alignment = 0
|
||||
expand_icon = true
|
||||
metadata/unit_name = &"эмс-454"
|
||||
|
||||
[node name="sub1" type="GridContainer" parent="шкала" groups=["нечётные", "шкалы-кластеров"]]
|
||||
self_modulate = Color(0.294118, 0.294118, 0.294118, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
metadata/unit_name = &"эмс-454"
|
||||
|
||||
[node name="panel_rx" parent="шкала/sub1" instance=ExtResource("5_6hay3")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c73tjrn8gr00o"
|
||||
back_color = Color(0.31863, 0.32773, 0.327729, 1)
|
||||
|
||||
[node name="panel_tx" parent="шкала/sub1" instance=ExtResource("5_6hay3")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c6etralq2tvxg"
|
||||
back_color = Color(0.31863, 0.32773, 0.327729, 1)
|
||||
|
||||
[node name="label2" type="Button" parent="шкала" groups=["кнопки-шкалы"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 5
|
||||
size_flags_vertical = 7
|
||||
toggle_mode = true
|
||||
action_mode = 0
|
||||
button_group = SubResource("ButtonGroup_vwsbs")
|
||||
text = "ГО"
|
||||
icon = ExtResource("9_bqil1")
|
||||
icon_alignment = 1
|
||||
vertical_icon_alignment = 0
|
||||
expand_icon = true
|
||||
metadata/unit_name = &"эмс-го"
|
||||
|
||||
[node name="sub2" type="GridContainer" parent="шкала" groups=["чётные", "шкалы-кластеров"]]
|
||||
self_modulate = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
metadata/unit_name = &"эмс-го"
|
||||
|
||||
[node name="panel_rx" parent="шкала/sub2" instance=ExtResource("5_6hay3")]
|
||||
self_modulate = Color(0.830335, 0.830335, 0.830335, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c73tjrn8gr00o"
|
||||
back_color = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
|
||||
[node name="panel_tx" parent="шкала/sub2" instance=ExtResource("5_6hay3")]
|
||||
self_modulate = Color(0.830335, 0.830335, 0.830335, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c6etralq2tvxg"
|
||||
back_color = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
|
||||
[node name="label3" type="Button" parent="шкала" groups=["кнопки-шкалы"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 5
|
||||
size_flags_vertical = 7
|
||||
toggle_mode = true
|
||||
action_mode = 0
|
||||
button_group = SubResource("ButtonGroup_vwsbs")
|
||||
text = "РЛС1"
|
||||
icon = ExtResource("10_ggqgc")
|
||||
icon_alignment = 1
|
||||
vertical_icon_alignment = 0
|
||||
expand_icon = true
|
||||
metadata/unit_name = &"эмс-рлс1"
|
||||
|
||||
[node name="sub3" type="GridContainer" parent="шкала" groups=["нечётные", "шкалы-кластеров"]]
|
||||
self_modulate = Color(0.294118, 0.294118, 0.294118, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
metadata/unit_name = &"эмс-рлс1"
|
||||
|
||||
[node name="panel_rx" parent="шкала/sub3" instance=ExtResource("5_6hay3")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c73tjrn8gr00o"
|
||||
back_color = Color(0.31863, 0.32773, 0.327729, 1)
|
||||
|
||||
[node name="panel_tx" parent="шкала/sub3" instance=ExtResource("5_6hay3")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c6etralq2tvxg"
|
||||
back_color = Color(0.31863, 0.32773, 0.327729, 1)
|
||||
|
||||
[node name="label4" type="Button" parent="шкала" groups=["кнопки-шкалы"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 5
|
||||
size_flags_vertical = 7
|
||||
toggle_mode = true
|
||||
action_mode = 0
|
||||
button_group = SubResource("ButtonGroup_vwsbs")
|
||||
text = "РЛС2"
|
||||
icon = ExtResource("11_xothm")
|
||||
icon_alignment = 1
|
||||
vertical_icon_alignment = 0
|
||||
expand_icon = true
|
||||
metadata/unit_name = &"эмс-рлс2"
|
||||
|
||||
[node name="sub4" type="GridContainer" parent="шкала" groups=["чётные", "шкалы-кластеров"]]
|
||||
self_modulate = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
metadata/unit_name = &"эмс-рлс2"
|
||||
|
||||
[node name="panel_rx" parent="шкала/sub4" instance=ExtResource("5_6hay3")]
|
||||
self_modulate = Color(0.830335, 0.830335, 0.830335, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c73tjrn8gr00o"
|
||||
back_color = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
|
||||
[node name="panel_tx" parent="шкала/sub4" instance=ExtResource("5_6hay3")]
|
||||
self_modulate = Color(0.830335, 0.830335, 0.830335, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c6etralq2tvxg"
|
||||
back_color = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
|
||||
[node name="label5" type="Button" parent="шкала" groups=["кнопки-шкалы"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 5
|
||||
size_flags_vertical = 7
|
||||
toggle_mode = true
|
||||
action_mode = 0
|
||||
button_group = SubResource("ButtonGroup_vwsbs")
|
||||
text = "ННВС"
|
||||
icon = ExtResource("12_4rjt3")
|
||||
icon_alignment = 1
|
||||
vertical_icon_alignment = 0
|
||||
expand_icon = true
|
||||
metadata/unit_name = &"эмс-ннвс"
|
||||
|
||||
[node name="sub5" type="GridContainer" parent="шкала" groups=["нечётные", "шкалы-кластеров"]]
|
||||
self_modulate = Color(0.294118, 0.294118, 0.294118, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
metadata/unit_name = &"эмс-ннвс"
|
||||
|
||||
[node name="panel_rx" parent="шкала/sub5" instance=ExtResource("5_6hay3")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c73tjrn8gr00o"
|
||||
back_color = Color(0.31863, 0.32773, 0.327729, 1)
|
||||
|
||||
[node name="panel_tx" parent="шкала/sub5" instance=ExtResource("5_6hay3")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c6etralq2tvxg"
|
||||
back_color = Color(0.31863, 0.32773, 0.327729, 1)
|
||||
|
||||
[node name="label6" type="Button" parent="шкала" groups=["кнопки-шкалы"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 5
|
||||
size_flags_vertical = 7
|
||||
toggle_mode = true
|
||||
action_mode = 0
|
||||
button_group = SubResource("ButtonGroup_vwsbs")
|
||||
text = "Изделие 7"
|
||||
icon = ExtResource("10_wdb1k")
|
||||
icon_alignment = 1
|
||||
vertical_icon_alignment = 0
|
||||
metadata/unit_name = &"эмс-изделие7"
|
||||
|
||||
[node name="sub6" type="GridContainer" parent="шкала" groups=["чётные", "шкалы-кластеров"]]
|
||||
self_modulate = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
metadata/unit_name = &"эмс-изделие7"
|
||||
|
||||
[node name="panel_rx" parent="шкала/sub6" instance=ExtResource("5_6hay3")]
|
||||
self_modulate = Color(0.830335, 0.830335, 0.830335, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c73tjrn8gr00o"
|
||||
back_color = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
|
||||
[node name="panel_tx" parent="шкала/sub6" instance=ExtResource("5_6hay3")]
|
||||
self_modulate = Color(0.830335, 0.830335, 0.830335, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c6etralq2tvxg"
|
||||
back_color = Color(0.258824, 0.266667, 0.266667, 1)
|
||||
|
||||
[node name="label7" type="Button" parent="шкала" groups=["кнопки-шкалы"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 5
|
||||
size_flags_vertical = 7
|
||||
toggle_mode = true
|
||||
action_mode = 0
|
||||
button_group = SubResource("ButtonGroup_vwsbs")
|
||||
text = "Изделие 8"
|
||||
icon = ExtResource("10_wdb1k")
|
||||
icon_alignment = 1
|
||||
vertical_icon_alignment = 0
|
||||
metadata/unit_name = &"эмс-изделие8"
|
||||
|
||||
[node name="sub7" type="GridContainer" parent="шкала" groups=["нечётные", "шкалы-кластеров"]]
|
||||
self_modulate = Color(0.294118, 0.294118, 0.294118, 1)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
metadata/unit_name = &"эмс-изделие8"
|
||||
|
||||
[node name="panel_rx" parent="шкала/sub7" instance=ExtResource("5_6hay3")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c73tjrn8gr00o"
|
||||
back_color = Color(0.31863, 0.32773, 0.327729, 1)
|
||||
|
||||
[node name="panel_tx" parent="шкала/sub7" instance=ExtResource("5_6hay3")]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
image_file = "uid://c6etralq2tvxg"
|
||||
back_color = Color(0.31863, 0.32773, 0.327729, 1)
|
||||
|
||||
[node name="матрица" type="GridContainer" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 1195.0
|
||||
offset_top = 735.0
|
||||
offset_right = 1585.0
|
||||
offset_bottom = 1145.0
|
||||
columns = 7
|
||||
|
||||
[node name="прм-прд" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("6_a0vpj")
|
||||
|
||||
[node name="прд-0" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("7_xr3ub")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="прд-1" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("8_saoyo")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="прд-2" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("9_bqil1")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="прд-3" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("10_ggqgc")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="прд-4" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("11_xothm")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="прд-5" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("12_4rjt3")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="прм-0" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("13_g0j2q")
|
||||
metadata/unit_name = &"эмс-ор63"
|
||||
|
||||
[node name="матрица-0-0" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
action_mode = 0
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-0-1" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-0-2" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-0-3" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-0-4" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-0-5" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="прм-1" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("14_crrpm")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="матрица-1-0" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-1-1" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-1-2" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-1-3" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-1-4" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-1-5" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="прм-2" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("15_0dspi")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="матрица-2-0" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-2-1" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-2-5" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-2-2" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-2-3" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-2-4" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="прм-3" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("16_6042y")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="матрица-3-0" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-3-1" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-3-2" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-3-3" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-3-4" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-3-5" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="прм-4" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("17_gvsi1")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="матрица-4-0" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-4-1" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-4-2" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-4-3" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-4-4" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-4-5" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="прм-5" type="TextureRect" parent="матрица"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("18_p3gp1")
|
||||
metadata/unit_name = &""
|
||||
|
||||
[node name="матрица-5-0" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-5-1" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-5-2" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-5-3" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-5-5" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="матрица-5-6" type="TextureButton" parent="матрица" groups=["матрица-к"]]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
toggle_mode = true
|
||||
button_mask = 0
|
||||
texture_normal = ExtResource("2_s28jr")
|
||||
texture_pressed = ExtResource("3_its7t")
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="label_msg" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 25.0
|
||||
offset_top = 765.0
|
||||
offset_right = 1180.0
|
||||
offset_bottom = 1155.0
|
||||
text = "Выберите устройство"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="label1" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = 20.0
|
||||
offset_top = 14.0
|
||||
offset_right = 142.0
|
||||
offset_bottom = 35.0
|
||||
text = "Устройства"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="label3" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = 1195.0
|
||||
offset_top = 702.0
|
||||
offset_right = 1585.0
|
||||
offset_bottom = 725.0
|
||||
text = "Индикатор конфликтов"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="label2" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = 145.0
|
||||
offset_top = 14.0
|
||||
offset_right = 1585.0
|
||||
offset_bottom = 35.0
|
||||
text = "Рабочие диапазоны"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="label4" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
offset_left = 20.0
|
||||
offset_top = 702.0
|
||||
offset_right = 1190.0
|
||||
offset_bottom = 725.0
|
||||
text = "Кластеры устройства"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
@@ -7,6 +7,7 @@ class InDev:
|
||||
var connector: String ## Номер разъёма в приборе.
|
||||
var delay: float ## Задержка фронта импульса.
|
||||
var offset: float ## Смещение фронта импульса.
|
||||
var state: int ## Состояние входа.
|
||||
var freq: int ## Предполагаемая частота на которой работает комплекс.
|
||||
var ports_data: Dictionary ## Словарь состояния портов устройства.
|
||||
var tbl_row_id: int ## Индекс устройства в таблице.
|
||||
@@ -15,14 +16,6 @@ class InDev:
|
||||
var board: String ## Плата в которой находится устройство.
|
||||
var isa_addr: int ## Адрес устройства на шине isa
|
||||
|
||||
|
||||
@export var state: int: ## Состояние входа.
|
||||
set(val):
|
||||
if val != state:
|
||||
state = val
|
||||
signaller.call_deferred('emit_signal', 'yems_input_changed', id, val)
|
||||
|
||||
|
||||
func _init(dev_id : int, params : Array, row_id : int, base_addr: int):
|
||||
id = dev_id
|
||||
dev_name = String(params[0])
|
||||
@@ -81,7 +74,7 @@ class OutDev extends InDev:
|
||||
if btns_state.has(i_dev):
|
||||
btns_state[i_dev] = val
|
||||
var data = 0
|
||||
for i in yemsconsts.NUM_INPUT:
|
||||
for i in range(yemsconsts.NUM_INPUT):
|
||||
data = data | (int(btns_state[i+1]) << i)
|
||||
ports_data[isa_addr + 4] = data & 0xffff
|
||||
ports_data[isa_addr + 6] = (data >> 16) & 0xffff
|
||||
|
||||
@@ -63,16 +63,17 @@ func init_boards():
|
||||
init_tbl_files()
|
||||
$scrl_files/tbl_files.pin_header($scrl_files, self)
|
||||
|
||||
unit_ems.connect('data_received', on_data_ems_received)
|
||||
unit_ems.connect('command_done', on_command_done)
|
||||
unit_ems.connect('line_changed', on_line_changed)
|
||||
unit_ems.connect('data_received', Callable(self, 'on_data_ems_received'))
|
||||
unit_ems.connect('command_done', Callable(self, 'on_command_done'))
|
||||
unit_ems.connect('line_changed', Callable(self, 'on_line_changed'))
|
||||
for board in g_boards.values():
|
||||
board.connect('upd_delay_offset', on_upd_delay_offset)
|
||||
board.connect('upd_o_state', on_upd_o_state)
|
||||
$btn_connect.connect('pressed', on_btn_connect)
|
||||
$btn_disconnect.connect('pressed', on_btn_disconnect.bind(unit_ems))
|
||||
$btn_flash_read.button_connect('pressed', on_btn_flash_read.bind($btn_flash_read))
|
||||
$btn_flash_write.button_connect('pressed', on_btn_flash_write.bind($btn_flash_write))
|
||||
board.connect('upd_delay_offset', Callable(self, 'on_upd_delay_offset'))
|
||||
board.connect('upd_o_state', Callable(self, 'on_upd_o_state'))
|
||||
$btn_connect.connect('pressed', Callable(self, 'on_btn_connect'))
|
||||
$btn_disconnect.connect('pressed', Callable(self, 'on_btn_disconnect').bind(unit_ems))
|
||||
$btn_flash_read.button_connect('pressed', Callable(self, 'on_btn_flash_read').bind($btn_flash_read))
|
||||
$btn_flash_write.button_connect('pressed', Callable(self, 'on_btn_flash_write').bind($btn_flash_write))
|
||||
|
||||
|
||||
|
||||
## Обработчик нажатия кнопки disconnect.
|
||||
@@ -139,7 +140,7 @@ func init_tbl_files():
|
||||
tools.fill_files_table($scrl_files/tbl_files, yemsconsts.files_folder, FILES_ROWS_TYPES)
|
||||
$scrl_files/tbl_files.set_columns_alignments(yemsconsts.FILES_ROWS_ALIGNMENT)
|
||||
$scrl_files/tbl_files.set_columns_min_size(yemsconsts.FILES_COLUMN_WIDTHS)
|
||||
$scrl_files/tbl_files.connect('row_pressed', on_pressed_file)
|
||||
$scrl_files/tbl_files.connect('row_pressed', Callable(self, 'on_pressed_file'))
|
||||
for i_row in $scrl_files/tbl_files.get_rows_count():
|
||||
disable_edit($scrl_files/tbl_files, len(FILES_ROWS_TYPES), i_row)
|
||||
|
||||
@@ -178,8 +179,8 @@ func init_tbl_in():
|
||||
$scrollin/tbl_in.set_node_user_data(i, row_index, [in_dev, board])
|
||||
$scrollin/tbl_in.set_columns_alignments(yams_alligment_in)
|
||||
$scrollin/tbl_in.set_columns_min_size(column_size)
|
||||
$scrollin/tbl_in.connect('row_pressed', on_row_pressed_in)
|
||||
$scrollin/tbl_in.connect('selected_changed', on_selected_changed_in)
|
||||
$scrollin/tbl_in.connect('row_pressed', Callable(self, 'on_row_pressed_in'))
|
||||
$scrollin/tbl_in.connect('selected_changed', Callable(self, 'on_selected_changed_in'))
|
||||
|
||||
# Инициализация таблицы изменения параметров входа и списка выходов связанных с ним
|
||||
header_text[0] = 'Вход'
|
||||
@@ -187,8 +188,8 @@ func init_tbl_in():
|
||||
$scrl_in_set/tbl_in_set.set_header_text(header_text)
|
||||
$scrl_in_set/tbl_in_set.set_columns_alignments(yams_alligment_in)
|
||||
$scrl_in_set/tbl_in_set.set_columns_min_size(column_size)
|
||||
$scrl_in_set/tbl_in_set.connect('row_pressed', on_row_pressed_si)
|
||||
$scrl_in_set/tbl_in_set.connect('selected_changed', on_selected_changed_si)
|
||||
$scrl_in_set/tbl_in_set.connect('row_pressed', Callable(self, 'on_row_pressed_si'))
|
||||
$scrl_in_set/tbl_in_set.connect('selected_changed', Callable(self, 'on_selected_changed_si'))
|
||||
|
||||
|
||||
## Обработчик редактирования Entry в таблице параметров входов/выходов.
|
||||
@@ -301,16 +302,16 @@ func init_tbl_out():
|
||||
cell.editable = false
|
||||
$scrollout/tbl_out.set_columns_min_size([250, 100, 70, 70, 70, 100])
|
||||
$scrollout/tbl_out.set_columns_alignments(yams_alligment_out)
|
||||
$scrollout/tbl_out.connect('row_pressed', on_row_pressed_out)
|
||||
$scrollout/tbl_out.connect('selected_changed', on_selected_changed_out)
|
||||
$scrollout/tbl_out.connect('row_pressed', Callable(self, 'on_row_pressed_out'))
|
||||
$scrollout/tbl_out.connect('selected_changed', Callable(self, 'on_selected_changed_out'))
|
||||
|
||||
# Инициализация таблицы изменения параметров выхода и списка входов связанных с ним
|
||||
header_text[0] = 'Выход'
|
||||
$scrl_out_set/tbl_out_set.set_header([TableHeader, TableHeader, CellFront, CellFrontRear, TableHeader, TableHeader])
|
||||
$scrl_out_set/tbl_out_set.set_header_text(header_text)
|
||||
$scrl_out_set/tbl_out_set.set_columns_min_size([250, 100, 70, 70, 70, 100])
|
||||
$scrl_out_set/tbl_out_set.connect('row_pressed', on_row_pressed_so)
|
||||
$scrl_out_set/tbl_out_set.connect('selected_changed', on_selected_changed_so)
|
||||
$scrl_out_set/tbl_out_set.connect('row_pressed', Callable(self, 'on_row_pressed_so'))
|
||||
$scrl_out_set/tbl_out_set.connect('selected_changed', Callable(self, 'on_selected_changed_so'))
|
||||
|
||||
|
||||
## Обработчик выбора строки в таблице соединений выхода и изменения параметров.
|
||||
@@ -356,7 +357,7 @@ func set_out_dev(dev):
|
||||
var mode = $scrl_out_set/tbl_out_set.get_node2(5, 0)
|
||||
for opt in OUT_MODE:
|
||||
mode.add_item(opt)
|
||||
mode.connect('item_selected', on_switch_done.bind(dev))
|
||||
mode.connect('item_selected', Callable(self, 'on_switch_done').bind(dev))
|
||||
mode.select(dev.mode)
|
||||
|
||||
|
||||
@@ -531,20 +532,20 @@ func on_upd_delay_offset(_board, dev):
|
||||
tbl = $scrollout/tbl_out
|
||||
var le_delay = tbl.get_node2(TABLE_ENTRY_COLUMNS[0], dev.tbl_row_id)
|
||||
var le_offset = tbl.get_node2(TABLE_ENTRY_COLUMNS[1], dev.tbl_row_id)
|
||||
le_delay.set_text('%3.1f' % dev.delay)
|
||||
le_offset.set_text('%3.1f' % dev.offset)
|
||||
le_delay.set_text(str('%3.1f' % dev.delay))
|
||||
le_offset.set_text(str('%3.1f' % dev.offset))
|
||||
if $scrl_in_set/tbl_in_set.get_rows_count():
|
||||
var sel_dev = $scrl_in_set/tbl_in_set.get_node_user_data(0, 0)
|
||||
var l_delay = $scrl_in_set/tbl_in_set.get_node2(2, 0)
|
||||
var l_offset = $scrl_in_set/tbl_in_set.get_node2(3, 0)
|
||||
l_delay.set_text('%3.1f' % sel_dev.delay)
|
||||
l_offset.set_text('%3.1f' % sel_dev.offset)
|
||||
l_delay.set_text(str('%3.1f' % sel_dev.delay))
|
||||
l_offset.set_text(str('%3.1f' % sel_dev.offset))
|
||||
if $scrl_out_set/tbl_out_set.get_rows_count():
|
||||
var sel_dev = $scrl_out_set/tbl_out_set.get_node_user_data(0, 0)
|
||||
var l_delay = $scrl_out_set/tbl_out_set.get_node2(2, 0)
|
||||
var l_offset = $scrl_out_set/tbl_out_set.get_node2(3, 0)
|
||||
l_delay.set_text('%3.1f' % sel_dev.delay)
|
||||
l_offset.set_text('%3.1f' % sel_dev.offset)
|
||||
l_delay.set_text(str('%3.1f' % sel_dev.delay))
|
||||
l_offset.set_text(str('%3.1f' % sel_dev.offset))
|
||||
|
||||
|
||||
## Вызывается по обновлению информации о режиме выходов
|
||||
@@ -661,4 +662,4 @@ func _on_btn_load_pressed() -> void:
|
||||
board.need_write = true
|
||||
log.message(log.INFO, 'Произведено чтение настроек ЭМС из файла: %s, для платы %s' %[fl_name, board.id_board])
|
||||
else:
|
||||
log.message(log.ERROR, 'Ошибка чтение настроек ЭМС из файла: %s' % fl_name)
|
||||
log.message(log.ERROR, 'Ошибка чтение настроек ЭМС из файла: %s' %fl_name)
|
||||
|
||||
15
scenes/эмс2/эмс-тг.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
extends Panel
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
var unit_trassa = network.get_unit_instance('уарэп-трасса')
|
||||
unit_trassa.connect('line_changed', Callable(self, 'on_trassa_line_changed'))
|
||||
signaller.connect('sector_klaster', Callable(self, 'on_sector_klaster').bind(unit_trassa))
|
||||
|
||||
|
||||
func on_trassa_line_changed(_unit_trassa):
|
||||
pass
|
||||
|
||||
|
||||
func on_sector_klaster(_data, _unit_trassa):
|
||||
pass
|
||||
96
scenes/эмс2/эмс-тг.tscn
Normal file
@@ -0,0 +1,96 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://0uv7tfkx2tec"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://hkcvl2waf63s" path="res://data/вид сверху.png" id="1_4em3i"]
|
||||
[ext_resource type="Texture2D" uid="uid://0w6q4vfst0ry" path="res://data/OP-63.png" id="3_eq8fj"]
|
||||
[ext_resource type="Texture2D" uid="uid://073el51yholj" path="res://data/454.png" id="4_528aa"]
|
||||
[ext_resource type="Texture2D" uid="uid://cckk3jk5r32bh" path="res://data/ГО.png" id="5_qxr47"]
|
||||
[ext_resource type="Texture2D" uid="uid://kyrnn1mqpc08" path="res://data/РЛС1.png" id="6_8sxps"]
|
||||
[ext_resource type="Texture2D" uid="uid://cx0f3wcx76u1k" path="res://data/РЛС2.png" id="7_0bfmy"]
|
||||
[ext_resource type="Texture2D" uid="uid://csxruavk0s40l" path="res://data/Окно частот0.png" id="8_4em3i"]
|
||||
[ext_resource type="Texture2D" uid="uid://duu8q7sv0jwfh" path="res://data/ННВС.png" id="8_aiy4x"]
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_5u4bk"]
|
||||
|
||||
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_pd85g"]
|
||||
|
||||
[node name="Control" type="Panel"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
modulate = Color(1, 0.596078, 0.4, 1)
|
||||
position = Vector2(801, 131)
|
||||
rotation = 1.5708
|
||||
scale = Vector2(0.353264, 0.353264)
|
||||
texture = ExtResource("1_4em3i")
|
||||
|
||||
[node name="частоты" type="TextureRect" parent="."]
|
||||
visible = false
|
||||
layout_mode = 0
|
||||
offset_left = 72.0
|
||||
offset_top = 264.0
|
||||
offset_right = 1621.0
|
||||
offset_bottom = 870.0
|
||||
scale = Vector2(0.95, 0.95)
|
||||
texture = SubResource("CompressedTexture2D_5u4bk")
|
||||
|
||||
[node name="Op-63" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 128.0
|
||||
offset_top = 91.0
|
||||
offset_right = 341.0
|
||||
offset_bottom = 383.0
|
||||
scale = Vector2(0.312207, 0.312207)
|
||||
texture = ExtResource("3_eq8fj")
|
||||
|
||||
[node name="454" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 288.0
|
||||
offset_top = 91.0
|
||||
offset_right = 501.0
|
||||
offset_bottom = 383.0
|
||||
scale = Vector2(0.312, 0.312)
|
||||
texture = ExtResource("4_528aa")
|
||||
|
||||
[node name="Го" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 464.0
|
||||
offset_top = 91.0
|
||||
offset_right = 677.0
|
||||
offset_bottom = 383.0
|
||||
scale = Vector2(0.312, 0.312)
|
||||
texture = ExtResource("5_qxr47")
|
||||
|
||||
[node name="Рлс1" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 728.0
|
||||
offset_top = 91.0
|
||||
offset_right = 941.0
|
||||
offset_bottom = 383.0
|
||||
scale = Vector2(0.312, 0.312)
|
||||
texture = ExtResource("6_8sxps")
|
||||
|
||||
[node name="Рлс2" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 920.0
|
||||
offset_top = 91.0
|
||||
offset_right = 1133.0
|
||||
offset_bottom = 383.0
|
||||
scale = Vector2(0.312, 0.312)
|
||||
texture = ExtResource("7_0bfmy")
|
||||
|
||||
[node name="Ннвс" type="TextureRect" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 1280.0
|
||||
offset_top = 91.0
|
||||
offset_right = 1493.0
|
||||
offset_bottom = 383.0
|
||||
scale = Vector2(0.312, 0.312)
|
||||
texture = ExtResource("8_aiy4x")
|
||||
|
||||
[node name="ТаблицаОбмена" type="Sprite2D" parent="."]
|
||||
position = Vector2(568, 1024)
|
||||
scale = Vector2(0.911215, 0.911215)
|
||||
texture = SubResource("CompressedTexture2D_pd85g")
|
||||
|
||||
[node name="ТаблицаЧастот" type="Sprite2D" parent="."]
|
||||
position = Vector2(794, 569)
|
||||
texture = ExtResource("8_4em3i")
|
||||
1319
scenes/эмс2/эмс2.tscn
Normal file
@@ -1,7 +1,5 @@
|
||||
class_name Iterfer extends Node
|
||||
|
||||
const default_um: = 5.0 ## Угол места по умолчанию
|
||||
|
||||
## Представление помехи.
|
||||
|
||||
## Режимы помехи.
|
||||
@@ -94,7 +92,7 @@ const EXCLUDE_INTERFER = ['srni1', 'srnm2', 'srngps', 'svi1', 'svm2']
|
||||
const ID_INTERFERS_LEN = 63 ## Размер пула номеров целей.
|
||||
const INTERFER_OFF = 'off'
|
||||
const INTERFER_IQFILE = 'IQ-файл'
|
||||
const POW_DEFAULT: float = 80.0
|
||||
const POW_DEFAULT: float = 50.0
|
||||
const PERIOD_DEFAULT = 7.5
|
||||
const MIN_WIDTH_COEF = 1.0
|
||||
const MIN_RESEND_TIMEOUT = 0.05
|
||||
@@ -117,12 +115,9 @@ var fs_closed: Dictionary ## Словарь секторо
|
||||
var width_coef: float = 1.5 ## Коэффициент расширения полосы
|
||||
var now: = 0.0 ## Время с момента запуска
|
||||
var resend_timeout: float = 1.0 ## Время повторной отправки команды
|
||||
var trim = 0.0 ## Килевая качка
|
||||
var roll = 0.0 ## Бортовая качка
|
||||
|
||||
signal send_ecms(time_now) ## Сигнал отправки помех, если настало время
|
||||
|
||||
var unit_nav: unit.Unit ## Навигация
|
||||
|
||||
## Сеанс помехи.
|
||||
class Interfer:
|
||||
@@ -141,10 +136,6 @@ class Interfer:
|
||||
var nmfs: int = 0 ## Номер модуля ФС в нумерации СТЦ
|
||||
var priority: int = 0 ## Приоритет помехи
|
||||
var active: bool = false ## Флаг, что фиксируется мощность на выходном усилителе
|
||||
var freq_change = false ## Флаг, что частота изменнена пользователем
|
||||
var bort = false ## Признак бортовая или килевая качка
|
||||
var trim_roll = 0.0 ## Качка для конкретной помехи
|
||||
var trim_roll_manual = false ## Флаг что ум задан оператором
|
||||
|
||||
func _to_string() -> String:
|
||||
return 'номер: %d название: %s частота: %0.1f МГц пеленг: %0.1f гр.' % [ispp, ITERFER_MODE[krp][0], params['freq'], kni]
|
||||
@@ -181,25 +172,9 @@ class Interfer:
|
||||
var param = self.get(value_key)
|
||||
if param == null:
|
||||
params[value_key] = value
|
||||
elif value_key == 'um':
|
||||
trim_roll_manual = true
|
||||
params[value_key] = value
|
||||
set_um()
|
||||
else:
|
||||
self.set(value_key, value)
|
||||
if value_key == 'freq':
|
||||
freq_change = true
|
||||
|
||||
func set_um():
|
||||
if not self.trim_roll_manual:
|
||||
self.um = params.get('um', default_um) + self.trim_roll
|
||||
else:
|
||||
self.um = params.get('um', default_um)
|
||||
if (self.um < settings.UM_MIN):
|
||||
self.um = settings.UM_MIN
|
||||
elif (self.um > settings.UM_MAX):
|
||||
self.um = settings.UM_MAX
|
||||
|
||||
|
||||
signal interfer_preparing(ecm: Interfer) ## Вызывается в момент запуска помехи.
|
||||
signal interfer_run(ecm: Interfer) ## Вызывается в момент начала работы помехи.
|
||||
signal interfer_error(ecm: Interfer, msg: String) ## Вызывается при ошибке.
|
||||
@@ -245,8 +220,8 @@ func _ready() -> void:
|
||||
threats.connect('threats_resized', Callable(self, 'on_threats_resized'))
|
||||
threats.connect('threat_update', Callable(self, 'on_threats_update').bind(ecms))
|
||||
ProjectSettings.connect('settings_changed', on_settings_changed)
|
||||
unit_nav = network.get_unit_instance('навигация')
|
||||
unit_nav.connect('data_received', on_nav_data_received.bind(unit_caps, ecms))
|
||||
var unit_nav: = network.get_unit_instance('навигация')
|
||||
unit_nav.connect('data_received', on_nav_data_received.bind(unit_caps))
|
||||
connect('send_ecms', Callable(self, 'on_send_ecms').bind(ecms, unit_caps))
|
||||
call_deferred('emit_signal', 'interfer_resized', ecms)
|
||||
|
||||
@@ -254,9 +229,8 @@ func _ready() -> void:
|
||||
func on_trenazh_mode(val: bool): trenazh_mode = val
|
||||
|
||||
|
||||
func on_nav_data_received(coords: Dictionary, unit_caps, ecms):
|
||||
func on_nav_data_received(coords: Dictionary, unit_caps):
|
||||
var ship_time = Time.get_datetime_dict_from_system()
|
||||
var update_bk_kk = false
|
||||
course = coords.get('k', 0.0)
|
||||
var data_to_json = {
|
||||
'ts': 8,
|
||||
@@ -274,23 +248,9 @@ func on_nav_data_received(coords: Dictionary, unit_caps, ecms):
|
||||
'minute': ship_time['minute'],
|
||||
'second': ship_time['second'],}
|
||||
var json_data = JSON.stringify(data_to_json).to_utf8_buffer()
|
||||
if data_to_json['roll'] != roll:
|
||||
roll = data_to_json['roll']
|
||||
update_bk_kk = true
|
||||
if data_to_json['trim'] != trim:
|
||||
trim = data_to_json['trim']
|
||||
update_bk_kk = true
|
||||
unit_caps.tx_stack.append(json_data)
|
||||
msg8_num += 1
|
||||
msg8_num %= 0xffffffff
|
||||
if update_bk_kk:
|
||||
for ecm in ecms.values():
|
||||
if ecm.bort:
|
||||
ecm.trim_roll = roll
|
||||
else:
|
||||
ecm.trim_roll = trim
|
||||
ecm.set_um()
|
||||
signaller.emit_signal('interfer_new', ecm)
|
||||
|
||||
|
||||
func on_th_aoa_update(threats: Dictionary, ecms: Dictionary) -> void:
|
||||
@@ -323,7 +283,6 @@ func on_th_aoa_update(threats: Dictionary, ecms: Dictionary) -> void:
|
||||
if thrs[ecm_i] == th_id:
|
||||
var ecm = ecms[ecm_i]
|
||||
ecm.params['freq'] = thr.freq
|
||||
ecm.params['um'] = get_um(thr.lat, thr.lon, thr.alt)
|
||||
ecm.kni = fposmod(thr.aoa - course, 360)
|
||||
call_ecm_proc(ecm)
|
||||
if ecm.nmfs in gos_nmfs or prd.fs_caps_id[ecm.nmfs] in fs_closed:
|
||||
@@ -427,7 +386,6 @@ func on_interfer_create(interfer_name, sel_threats, fs_arr, power, u, ecms) -> v
|
||||
var id = item.id
|
||||
param['freq'] = item.freq
|
||||
param['width'] = item.width * width_coef
|
||||
param['um'] = get_um(item.lat, item.lon, item.alt)
|
||||
if item.rparams.has('period'):
|
||||
param['period'] = item.rparams['period']
|
||||
if (item.rkrp != '') and item.fflags.rkrp and auto_enabled:
|
||||
@@ -448,15 +406,6 @@ func on_interfer_create(interfer_name, sel_threats, fs_arr, power, u, ecms) -> v
|
||||
interfer_create(u, interfer_name, ecms, param, kni, id, fs, SOURCE_INTERFER[1], power)
|
||||
|
||||
|
||||
## Возвращает угол места до заданной цели
|
||||
## [param lat] -
|
||||
## [param lon] -
|
||||
## [param alt] - высота
|
||||
func get_um(lat: float, lon: float, alt: float) -> float:
|
||||
var dist = tools.haversine_m(lat, lon, unit_nav.latlon.x, unit_nav.latlon.y)
|
||||
return rad_to_deg(atan(alt / dist)) if dist > 0.0 else default_um
|
||||
|
||||
|
||||
func on_interfer_rcv(interfer_params: Array, unit0, unit_caps, ecms) -> void:
|
||||
var err: bool = false
|
||||
var mode = interfer_params[0]
|
||||
@@ -520,12 +469,11 @@ func interfer_create(_u, interfer_name, ecms, param, kni, id, dict, source_inter
|
||||
ecm.params = param
|
||||
ecm.powp = power
|
||||
ecm.source_interfer = source_interfer
|
||||
ecm.um = param.get('um', 15.0) # Значение по умолчанию
|
||||
if source_interfer == SOURCE_INTERFER[0]:
|
||||
if thrs_dict.has(dict[ispp]):
|
||||
ecm.priority = thrs_dict[dict[ispp]].priority
|
||||
call_ecm_proc(ecm)
|
||||
set_bort(ecm)
|
||||
ecm.set_um()
|
||||
var set_nmfs_ok = set_nmfs(ecm)
|
||||
if set_nmfs_ok != Error.OK:
|
||||
log.error('Ошибка выбора модуля ФС для помехи: %s' %[ecm.ispp])
|
||||
@@ -593,8 +541,7 @@ func call_diap(ecm, ecm_params: Dictionary):
|
||||
var band = fs_index_arr[0] / 4
|
||||
if ecm_params['files'].has(band):
|
||||
ecm.params['filename'] = ecm_params['files'][band][0]
|
||||
if not ecm.freq_change:
|
||||
ecm.params['freq'] = ecm_params['files'][band][1]
|
||||
ecm.params['freq'] = ecm_params['files'][band][1]
|
||||
|
||||
|
||||
func call_pdchm(ecm, ecm_params: Dictionary):
|
||||
@@ -772,18 +719,3 @@ func on_send_ecms(time_now, ecms, unit_caps):
|
||||
func _process(delta: float) -> void:
|
||||
now += delta
|
||||
emit_signal('send_ecms', now)
|
||||
|
||||
|
||||
func set_bort(ecm: Interfer):
|
||||
var sec = 0
|
||||
for sect in prd.FS_SECTORS.keys():
|
||||
if ecm.kni >= prd.FS_SECTORS[sect][0] and ecm.kni <= prd.FS_SECTORS[sect][1]:
|
||||
sec = sect
|
||||
if (sec == 0) or (sec == 2):
|
||||
ecm.bort = false
|
||||
else:
|
||||
ecm.bort = true
|
||||
if ecm.bort:
|
||||
ecm.trim_roll = roll
|
||||
else:
|
||||
ecm.trim_roll = trim
|
||||
|
||||
@@ -13,7 +13,6 @@ class NaviSource extends unit.Unit:
|
||||
var data: = {} ## Принятые данные
|
||||
var source_addr: = [] ## Адрес отправителя
|
||||
const akng_mode = {0:'тестовый', 1:'основной', 2:'резервный', 3:'аварийный'}
|
||||
static var latlon: Vector2 ## Текущие координаты
|
||||
func _to_string() -> String:
|
||||
return String('NaviSource: %s %s' % [self.name, 'на связи' if online else 'отключен'])
|
||||
func _init(nm):
|
||||
@@ -41,10 +40,8 @@ class NaviSource extends unit.Unit:
|
||||
if flags & (1 << 1):
|
||||
data['k'] = rx_data.decode_float(8) # Курс, градусы (0.0 - Север)
|
||||
if flags & (1 << 2):
|
||||
latlon.x = float(rx_data.decode_s32(12) * 180) / pow_2_30 # Широта, градусы
|
||||
latlon.y = float(rx_data.decode_s32(16) * 180) / pow_2_30 # Долгота, градусы
|
||||
data['latitude'] = latlon.x
|
||||
data['longitude'] = latlon.y
|
||||
data['latitude'] = float(rx_data.decode_s32(12) * 180) / pow_2_30 # Широта, градусы
|
||||
data['longitude'] = float(rx_data.decode_s32(16) * 180) / pow_2_30 # Долгота, градусы
|
||||
if flags & (1 << 3):
|
||||
data['speed'] = rx_data.decode_float(20) # Скорость, м/с
|
||||
data['err'] = rx_data.decode_u16(24) #
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@tool
|
||||
class_name Network extends Node
|
||||
|
||||
const YAU07_PROTO: = {'yau07tx': yau07.YaU07, 'iyems-tx': yemstg.YeMSTG}
|
||||
const YAU07_PROTO: = {'yau07tx': yau07.YaU07}
|
||||
const UDP_PROTO: = {'capsrpb': capsrpb.CapsRpb, 'trassa': trassa.Trassa}
|
||||
const TCP_PROTO: = {'5p28': tcp5p28.TCP5P28}
|
||||
const SERIAL_PROTO: = {'spt25': spt25.SPT25}
|
||||
@@ -146,15 +146,12 @@ func create_socket_udp(unit_name: StringName) -> SocketUDP:
|
||||
var bind = st[3]
|
||||
var sock: = SocketUDP.new()
|
||||
sock.set_broadcast_enabled(broad)
|
||||
if broad:
|
||||
log.info('\"%s\" - установлен широковещательный режим' % unit_name)
|
||||
if bind:
|
||||
var rc: = sock.bind(port, addr)
|
||||
if rc == Error.OK:
|
||||
log.info('\"%s\" привязан к %s:%d' % [unit_name, addr, port])
|
||||
else:
|
||||
var errmsg: = error_string(rc)
|
||||
log.error('привязка \"%s\" к %s:%d не удалась: \"%s\"' % [unit_name, addr, port, errmsg])
|
||||
var rc: = sock.bind(port, addr)
|
||||
if rc == Error.OK:
|
||||
log.info('\"%s\" привязан к %s:%d' % [unit_name, addr, port])
|
||||
else:
|
||||
var errmsg: = error_string(rc)
|
||||
log.error('привязка \"%s\" к %s:%d не удалась: \"%s\"' % [unit_name, addr, port, errmsg])
|
||||
return sock
|
||||
|
||||
|
||||
@@ -200,8 +197,7 @@ func _ready() -> void:
|
||||
var sock_navi: = create_socket_udp('навигация')
|
||||
var sock_caps: = create_socket_caps('уарэп-капсрпб')
|
||||
var sock_trassa: = create_socket_caps('уарэп-трасса')
|
||||
var sock_yems: = create_socket_udp('эмс-ведущий')
|
||||
poll_sockets = [sock_unicast, sock_broadcast, sock_caps, sock_navi, sock_trassa, sock_yems]
|
||||
poll_sockets = [sock_unicast, sock_broadcast, sock_caps, sock_navi, sock_trassa]
|
||||
send_sockets['уарэп-яу07-частный'] = sock_unicast
|
||||
send_sockets['уарэп-яу07-общий'] = sock_broadcast
|
||||
send_sockets['уарэп-капсрпб'] = sock_caps
|
||||
@@ -219,14 +215,6 @@ func _ready() -> void:
|
||||
send_sockets['уарэп-яу07-3в'] = sock_unicast
|
||||
send_sockets['уарэп-яу07-3н'] = sock_unicast
|
||||
send_sockets['уарэп-яу07-3к'] = sock_unicast
|
||||
send_sockets['эмс-ор63'] = sock_yems
|
||||
send_sockets['эмс-454'] = sock_yems
|
||||
send_sockets['эмс-го'] = sock_yems
|
||||
send_sockets['эмс-рлс1'] = sock_yems
|
||||
send_sockets['эмс-рлс2'] = sock_yems
|
||||
send_sockets['эмс-ннвс'] = sock_yems
|
||||
send_sockets['эмс-изделие7'] = sock_yems
|
||||
send_sockets['эмс-изделие8'] = sock_yems
|
||||
|
||||
var bind_serials: = []
|
||||
var bind_modbuses: = []
|
||||
@@ -355,7 +343,6 @@ func _process(_delta: float) -> void:
|
||||
poll_sockets.any(poll_receive_udp)
|
||||
|
||||
|
||||
## Возвращает экземпляр уже созданного устройства
|
||||
## [param unit_name] - Уникальное имя устройства[br]
|
||||
func get_unit_instance(unit_name: StringName) -> unit.Unit:
|
||||
return units.get(unit_name, null)
|
||||
|
||||
@@ -6,8 +6,7 @@ class_name uarep_settings extends Node
|
||||
var settings_program: Dictionary
|
||||
|
||||
var UnitProfiles: Dictionary[StringName, Array] = { \
|
||||
# < Название: [Протокол, [Параметры], Комментарий] >
|
||||
# < Название: Протокол, [Адрес, <Порт>|[, Порт], Широковещательное, Привязывать], Комментарий >
|
||||
# < Название: Протокол, Адрес, <Порт>|[, Порт], Широковещательное, Привязывать, Комментарий >
|
||||
'уарэп-яу07-частный': ['yau07rx', ['10.1.1.2', 50002, false, true], 'IP-адрес для приёма частных сообщений от ЯУ-07'],
|
||||
'уарэп-яу07-общий': ['yau07rx', ['*', 50000, true, true], 'IP-адрес для приёма широковещательных сообщений от ЯУ-07'],
|
||||
'уарэп-капсрпб': ['capsrpb', ['127.0.0.1', '127.0.0.1', 42023, 42022, false, true], 'IP-адрес для обмена сообщениями со службой \"МП550\" (СТЦ)'],
|
||||
@@ -27,17 +26,6 @@ var UnitProfiles: Dictionary[StringName, Array] = { \
|
||||
'уарэп-яу07-3к': ['yau07tx', ['10.1.1.33', 50033, false, false], 'IP-адрес прибора ПРД-К3'],
|
||||
'навигация': ['navi', ['*', 60000, true, true ], 'IP-адрес на котором принимают сообщения от навигации'],
|
||||
|
||||
# < Название: [протокол, [адрес, порт, широковещательное, привязывать], комментарий >
|
||||
'эмс-ведущий': ['iyems-rx', ['192.168.11.105', 61000, false, true], 'IP-адрес для приёма докладов от информационных ЭМС устройств'],
|
||||
'эмс-ор63': ['iyems-tx', ['192.168.11.200', 61001, false, false], 'IP-адрес для передачи команд информационному ЭМС устройству'],
|
||||
'эмс-454': ['iyems-tx', ['192.168.11.200', 61002, false, false], 'IP-адрес для передачи команд информационному ЭМС устройству'],
|
||||
'эмс-го': ['iyems-tx', ['192.168.11.200', 61003, false, false], 'IP-адрес для передачи команд информационному ЭМС устройству'],
|
||||
'эмс-рлс1': ['iyems-tx', ['192.168.11.200', 61004, false, false], 'IP-адрес для передачи команд информационному ЭМС устройству'],
|
||||
'эмс-рлс2': ['iyems-tx', ['192.168.11.200', 61005, false, false], 'IP-адрес для передачи команд информационному ЭМС устройству'],
|
||||
'эмс-ннвс': ['iyems-tx', ['192.168.11.200', 61006, false, false], 'IP-адрес для передачи команд информационному ЭМС устройству'],
|
||||
'эмс-изделие7': ['iyems-tx', ['127.0.0.1', 61007, false, false], 'IP-адрес для передачи команд информационному ЭМС устройству'],
|
||||
'эмс-изделие8': ['iyems-tx', ['127.0.0.1', 61008, false, false], 'IP-адрес для передачи команд информационному ЭМС устройству'],
|
||||
|
||||
# < Название: Протокол, < Адрес, Порт получения >, Комментарий >
|
||||
'уарэп-5п28': ['5p28', ['127.0.0.1', 50000], 'IP-адрес комплекса 5П-28'],
|
||||
|
||||
|
||||
@@ -11,12 +11,6 @@ func conn(sgnl: Signal, clbl: Callable): connect(sgnl.get_name(), clbl)
|
||||
func emmit(sgnl: Signal): emit_signal(sgnl.get_name())
|
||||
|
||||
|
||||
## Вызывается при изменении состояния входа ЭМС
|
||||
## [param id] - идентификатор входа ЭМС
|
||||
## [param state] - новое состояние входа ЭМС
|
||||
signal yems_input_changed(id: int, state: int)
|
||||
|
||||
|
||||
## Вызывается при обнаружение ошибки последовательного порта
|
||||
signal serial_error()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
extends Node
|
||||
## Работа с целями.
|
||||
|
||||
const MSG9_RESEND_TIMEOUT = 3.0 ## Время повторной отправки пакета 9
|
||||
const MSG9_RESEND_TIMEOUT = 1.0 ## Время повторной отправки пакета 9
|
||||
|
||||
## Режимы работы АФСП и БПО (Протокол ТНИИС-СТЦ, пункт 2.5.10)
|
||||
enum AFSP_BPO_MODE {
|
||||
@@ -217,7 +217,10 @@ func send_msg9(unit_caps):
|
||||
|
||||
|
||||
func on_timer_msg9(unit_caps, timer_msg9):
|
||||
send_msg9(unit_caps)
|
||||
if bpo_mode != bpo_mode_rx:
|
||||
send_msg9(unit_caps)
|
||||
else:
|
||||
timer_msg9.stop()
|
||||
|
||||
|
||||
func on_caps_line_changed(unit_caps, timer_msg9):
|
||||
|
||||
@@ -156,8 +156,7 @@ func map_dec_to_rad(pos0: Vector2, pos: Vector2) -> Vector2:
|
||||
## [param p] - Координаты вершин полигона.[br]
|
||||
func is_point_in_polygon(pos: Vector2, p: PackedVector2Array) -> bool:
|
||||
var sz: = p.size()
|
||||
if not sz:
|
||||
return false
|
||||
assert(sz)
|
||||
var j: int = sz - 1
|
||||
var odd_nodes: int = 0
|
||||
for i in sz:
|
||||
@@ -197,30 +196,6 @@ func set_bits(v, a, m):
|
||||
return (~m) & v | a & m
|
||||
|
||||
|
||||
# Возвращает расстояние в метрах между двумя точками на карте
|
||||
func haversine_m(lat1: float, lon1: float, lat2: float, lon2: float) -> float:
|
||||
# Радиус Земли в метрах
|
||||
const R: = 6372795.0
|
||||
# Преобразование градусов в радианы
|
||||
var rlat1: = deg_to_rad(lat1)
|
||||
var rlon1: = deg_to_rad(lon1)
|
||||
var rlat2: = deg_to_rad(lat2)
|
||||
var rlon2: = deg_to_rad(lon2)
|
||||
# вычисление длины большого круга
|
||||
var cl1: = cos(rlat1)
|
||||
var cl2: = cos(rlat2)
|
||||
var sl1: = sin(rlat1)
|
||||
var sl2: = sin(rlat2)
|
||||
var delta: = rlon2 - rlon1
|
||||
var cdelta: = cos(delta)
|
||||
var sdelta: = sin(delta)
|
||||
var y: = sqrt(pow(cl2 * sdelta, 2.0) + pow(cl1 * sl2 - sl1 * cl2 * cdelta, 2.0))
|
||||
var x: = sl1 * sl2 + cl1 * cl2 * cdelta
|
||||
var ad: = atan2(y, x)
|
||||
var dist: = ad * R
|
||||
return dist
|
||||
|
||||
|
||||
func fill_files_table(tbl: table, folder: String, rows_types: Array):
|
||||
var dir: = DirAccess.open(folder)
|
||||
if dir == null:
|
||||
|
||||
@@ -25,6 +25,6 @@ class Unit extends Object:
|
||||
var rx_tick: int = 0 ## Тик-время последнего приёма данных
|
||||
var online: bool = false ## Состояние подключения устройства
|
||||
var name: StringName = '<без имени>' ## Уникальное имя устройства
|
||||
func _init(nm: StringName) -> void: self.name = nm
|
||||
func _init(nm) -> void: self.name = nm
|
||||
func _to_string() -> String:
|
||||
return String('Unit(\"%s\", %s)' % [self.name, 'на связи' if online else 'отключен'])
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
extends Node
|
||||
|
||||
|
||||
class YeMSTG extends unit.Unit:
|
||||
static var json_conv: = JSON.new()
|
||||
var online_timeout: float = 5000 ## Должен быть равен наибольшему времени дотоверности из всех кластеров
|
||||
var info: = Dictionary() ## Доклад о состоянии
|
||||
var cmd: = Dictionary() ## Команда
|
||||
var cnt: int = 0 ## Счётчик отправленных пакетов
|
||||
|
||||
func _init(unit_name) -> void:
|
||||
super._init(unit_name)
|
||||
cmd_state = CmdState.DONE
|
||||
|
||||
func parse(data: PackedByteArray, now_tick: int):
|
||||
self.rx_tick = now_tick
|
||||
if not online:
|
||||
online = true
|
||||
emit_signal('line_changed', self)
|
||||
var utf8_data: = data.get_string_from_utf8()
|
||||
if Error.OK == json_conv.parse(utf8_data):
|
||||
info.merge(json_conv.get_data(), true)
|
||||
emit_signal('data_received', info)
|
||||
else:
|
||||
var msg: = json_conv.get_error_message()
|
||||
emit_signal('parse_error', self, msg)
|
||||
|
||||
func process(now_tick: int):
|
||||
if online and ((now_tick - rx_tick) > online_timeout):
|
||||
online = false
|
||||
emit_signal('line_changed', self)
|
||||
var rc = Error.ERR_BUSY
|
||||
if cmd_state == CmdState.SEND:
|
||||
tx_data = JSON.stringify(cmd).to_utf8_buffer()
|
||||
tx_len = tx_data.size()
|
||||
cmd_state = CmdState.DONE
|
||||
rc = Error.OK
|
||||
return rc
|
||||
@@ -1 +0,0 @@
|
||||
uid://bst5wk3otwwai
|
||||
@@ -7,6 +7,7 @@
|
||||
"Включить работу по своим целям": true,
|
||||
"Внешнее указание Трасса": false,
|
||||
"Внешнее управление": false,
|
||||
"Время повторной отправки помехи": "1",
|
||||
"Кнопка «JTIDS»": false,
|
||||
"Кнопка «К1»": false,
|
||||
"Кнопка «КУПД»": false,
|
||||
@@ -23,15 +24,19 @@
|
||||
"Кнопка «Подавление»": false,
|
||||
"Кнопка «СВ-И1»": false,
|
||||
"Кнопка «СВ-М2»": false,
|
||||
"Коэффициент ширины полосы излучения": "1.5",
|
||||
"Ограниченный режим": false,
|
||||
"Период опроса состояния АФСП, секунды": "30",
|
||||
"Период опроса состояния БПО, секунды": "30",
|
||||
"Отладка контроля": false,
|
||||
"Период опроса состояния АФСП, секунды": "",
|
||||
"Период опроса состояния БПО, секунды": "",
|
||||
"Скрыть вкладку ЭМС 2": true,
|
||||
"Список своих протоколов": "j11",
|
||||
"Схема прибора. Белый цвет": [1.0, 1.0, 1.0],
|
||||
"Схема прибора. Чёрный цвет": [0.0, 0.0, 0.0],
|
||||
"Текущая версия ПО УАРЭП": "master b2633d8 Thu Sep 11 16:26:39 2025 +0300",
|
||||
"Шаблон адреса сервера карт": "http://169.254.27.71:8001/osm_tiles/{z}/{x}/{y}.png",
|
||||
"Список своих протоколов": "",
|
||||
"Текущая версия ПО УАРЭП": "master 3bff1cd Tue Nov 4 15:33:24 2025 +0300",
|
||||
"Цвет кнопки \"Подавление\"": "[0.905882358551025,0.00392156885936856,0.0,1.0]",
|
||||
"Цвет схемы": "[0.905954480171204,0.921875,0.8714599609375,1.0]",
|
||||
"Цвет темы программы": false,
|
||||
"Цвет фона схемы": "[0.258926391601563,0.274618297815323,0.27734375,1.0]",
|
||||
"Шаблон адреса сервера карт": "http://192.168.11.109:8001/osm_tiles/{z}/{x}/{y}.png",
|
||||
"навигация": [
|
||||
"*",
|
||||
60000,
|
||||
@@ -39,19 +44,19 @@
|
||||
true
|
||||
],
|
||||
"уарэп-5п28": [
|
||||
"127.0.0.1",
|
||||
"192.168.11.105",
|
||||
50777
|
||||
],
|
||||
"уарэп-капсрпб": [
|
||||
"127.0.0.1",
|
||||
"127.0.0.1",
|
||||
"192.168.11.102",
|
||||
"192.168.11.105",
|
||||
42023,
|
||||
42022,
|
||||
false,
|
||||
true
|
||||
],
|
||||
"уарэп-спт25-1": [
|
||||
"/home/sasha/dev/tty0",
|
||||
"/home/user/tty0",
|
||||
0,
|
||||
19200,
|
||||
"N",
|
||||
@@ -59,7 +64,7 @@
|
||||
1
|
||||
],
|
||||
"уарэп-спт25-2": [
|
||||
"/home/sasha/dev/tty4",
|
||||
"/home/user/tty1",
|
||||
0,
|
||||
19200,
|
||||
"N",
|
||||
@@ -67,15 +72,15 @@
|
||||
1
|
||||
],
|
||||
"уарэп-трасса": [
|
||||
"127.0.0.1",
|
||||
"127.0.0.1",
|
||||
"192.168.11.34",
|
||||
"192.168.11.105",
|
||||
50200,
|
||||
10004,
|
||||
false,
|
||||
true
|
||||
],
|
||||
"уарэп-щ3": [
|
||||
"/home/sasha/dev/tty2",
|
||||
"/dev/ttyUSB0",
|
||||
7,
|
||||
19200,
|
||||
"N",
|
||||
@@ -168,9 +173,9 @@
|
||||
true
|
||||
],
|
||||
"уарэп-яу07-частный": [
|
||||
"10.1.1.253",
|
||||
50253,
|
||||
"10.1.1.2",
|
||||
50002,
|
||||
false,
|
||||
true
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://cymcld4mjmlhj"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c73tjrn8gr00o" path="res://data/Передатчик.png" id="1_nbmfn"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_63652"]
|
||||
script/source = "extends GridContainer
|
||||
|
||||
@export var text: String:
|
||||
set(val):
|
||||
text = val
|
||||
if is_inside_tree():
|
||||
$label.text = val
|
||||
get:
|
||||
return text
|
||||
|
||||
|
||||
@export_file var image_file: String:
|
||||
set(val):
|
||||
image_file = val
|
||||
if is_inside_tree():
|
||||
$image.texture = load(val)
|
||||
get:
|
||||
return image_file
|
||||
|
||||
|
||||
func _enter_tree() -> void:
|
||||
if ResourceLoader.exists(image_file):
|
||||
$image.texture = load(image_file)
|
||||
$label.text = text
|
||||
"
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nbmfn"]
|
||||
bg_color = Color(0.741395, 0.468103, 0.328942, 1)
|
||||
corner_radius_top_left = 4
|
||||
corner_radius_top_right = 4
|
||||
corner_radius_bottom_right = 4
|
||||
corner_radius_bottom_left = 4
|
||||
|
||||
[node name="header-image" type="GridContainer"]
|
||||
offset_right = 100.0
|
||||
offset_bottom = 19.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
columns = 2
|
||||
script = SubResource("GDScript_63652")
|
||||
|
||||
[node name="image" type="TextureRect" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
texture = ExtResource("1_nbmfn")
|
||||
expand_mode = 3
|
||||
|
||||
[node name="label" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_nbmfn")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
24
table/lable.gd
Normal file
@@ -0,0 +1,24 @@
|
||||
extends Label
|
||||
|
||||
static var styles: = [null, null]
|
||||
static var init_done: = false
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
if init_done:
|
||||
init_done = true
|
||||
var style_light: = get_theme_stylebox('normal')
|
||||
style_light.bg_color = Color.GRAY
|
||||
styles[1] = style_light
|
||||
var style_dark: = style_light.duplicate(true)
|
||||
style_dark.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[0] = style_dark
|
||||
ProjectSettings.connect('settings_changed', apply_colors)
|
||||
apply_colors()
|
||||
|
||||
|
||||
func apply_colors():
|
||||
if ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false):
|
||||
add_theme_stylebox_override('normal', styles[1])
|
||||
else:
|
||||
add_theme_stylebox_override('normal', styles[0])
|
||||
1
table/lable.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bjw0gwcqxx30d
|
||||
@@ -1,5 +1,7 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dwphmxstaxn4v"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bjw0gwcqxx30d" path="res://table/lable.gd" id="1_xk0u2"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_yign5"]
|
||||
bg_color = Color(0.117647, 0.117647, 0.117647, 0.85098)
|
||||
border_width_bottom = 2
|
||||
@@ -9,29 +11,9 @@ corner_radius_top_right = 3
|
||||
corner_radius_bottom_right = 3
|
||||
corner_radius_bottom_left = 5
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_dhnrx"]
|
||||
script/source = "extends Label
|
||||
|
||||
static var styles: = [null, null]
|
||||
static var init_done: = false
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
if init_done:
|
||||
init_done = true
|
||||
var style_light: = get_theme_stylebox('normal')
|
||||
style_light.bg_color = Color.GRAY
|
||||
styles[1] = style_light
|
||||
var style_dark: = style_light.duplicate(true)
|
||||
style_dark.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[0] = style_dark
|
||||
"
|
||||
|
||||
[node name="Lable" type="Label"]
|
||||
offset_right = 104.0
|
||||
offset_bottom = 27.0
|
||||
theme_override_colors/font_color = Color(1, 0.596078, 0.4, 1)
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_yign5")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
script = SubResource("GDScript_dhnrx")
|
||||
script = ExtResource("1_xk0u2")
|
||||
|
||||
28
table/node.gd
Normal file
@@ -0,0 +1,28 @@
|
||||
extends LineEdit
|
||||
|
||||
|
||||
static var styles: = [null, null]
|
||||
static var init_done: = false
|
||||
|
||||
func _init() -> void:
|
||||
if not init_done:
|
||||
init_done = true
|
||||
var style_light: = get_theme_stylebox('read_only')
|
||||
style_light.bg_color = Color.GRAY
|
||||
styles[1] = style_light
|
||||
var style_dark: = style_light.duplicate(true)
|
||||
style_dark.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[0] = style_dark
|
||||
ProjectSettings.connect('settings_changed', apply_colors)
|
||||
apply_colors()
|
||||
|
||||
|
||||
func apply_colors():
|
||||
if ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false):
|
||||
add_theme_color_override('font_color_readonly', Color.BLACK)
|
||||
add_theme_color_override('font_color_placeholder', Color(0, 0, 0, 0.5))
|
||||
add_theme_stylebox_override('read_only', styles[1])
|
||||
else:
|
||||
add_theme_color_override('font_color_readonly', Color('#D8731A')) # тёмно-оранжевый
|
||||
add_theme_color_override('font_color_placeholder', Color(1, 1, 1, 0.5))
|
||||
add_theme_stylebox_override('read_only', styles[0])
|
||||
1
table/node.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://c71233c2tqc2u
|
||||
@@ -1,34 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c1i4rwaajq7d5"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_eegm3"]
|
||||
script/source = "extends LineEdit
|
||||
|
||||
static var styles: = [null, null]
|
||||
static var init_done: = false
|
||||
|
||||
func _init() -> void:
|
||||
if not init_done:
|
||||
init_done = true
|
||||
var style_light: = get_theme_stylebox('read_only')
|
||||
style_light.bg_color = Color.GRAY
|
||||
styles[1] = style_light
|
||||
var style_dark: = style_light.duplicate(true)
|
||||
style_dark.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[0] = style_dark
|
||||
ProjectSettings.connect('settings_changed', apply_colors)
|
||||
apply_colors()
|
||||
|
||||
|
||||
func apply_colors():
|
||||
if ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false):
|
||||
add_theme_color_override('font_color_readonly', Color.BLACK)
|
||||
add_theme_color_override('font_color_placeholder', Color(0, 0, 0, 0.5))
|
||||
add_theme_stylebox_override('read_only', styles[1])
|
||||
else:
|
||||
add_theme_color_override('font_color_readonly', Color('#D8731A')) # тёмно-оранжевый
|
||||
add_theme_color_override('font_color_placeholder', Color(1, 1, 1, 0.5))
|
||||
add_theme_stylebox_override('read_only', styles[0])
|
||||
"
|
||||
[ext_resource type="Script" uid="uid://c71233c2tqc2u" path="res://table/node.gd" id="1_oh3pj"]
|
||||
|
||||
[node name="Label" type="LineEdit"]
|
||||
offset_right = 121.0
|
||||
@@ -38,4 +10,4 @@ editable = false
|
||||
context_menu_enabled = false
|
||||
caret_blink = true
|
||||
caret_blink_interval = 0.1
|
||||
script = SubResource("GDScript_eegm3")
|
||||
script = ExtResource("1_oh3pj")
|
||||
|
||||
33
table/set-toggle.gd
Normal file
@@ -0,0 +1,33 @@
|
||||
extends LineEdit
|
||||
|
||||
static var styles: = [null, null]
|
||||
static var init_done: = false
|
||||
|
||||
var checkbutton_material: Material
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
if not init_done:
|
||||
init_done = true
|
||||
var style_light: = get_theme_stylebox('read_only')
|
||||
style_light.bg_color = Color.GRAY
|
||||
styles[1] = style_light
|
||||
var style_dark: = style_light.duplicate(true)
|
||||
style_dark.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[0] = style_dark
|
||||
ProjectSettings.connect('settings_changed', on_setting_changed)
|
||||
call_deferred('on_setting_changed')
|
||||
|
||||
|
||||
func on_setting_changed():
|
||||
checkbutton_material = $CheckButton.material
|
||||
apply_colors()
|
||||
|
||||
|
||||
func apply_colors():
|
||||
if ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false):
|
||||
add_theme_stylebox_override('read_only', styles[1])
|
||||
$CheckButton.material = null
|
||||
else:
|
||||
add_theme_stylebox_override('read_only', styles[0])
|
||||
$CheckButton.material = checkbutton_material
|
||||
1
table/set-toggle.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://btvrqnnjjum20
|
||||
@@ -1,45 +1,10 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dgidt8lifm7xe"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://btvrqnnjjum20" path="res://table/set-toggle.gd" id="1_kvru5"]
|
||||
[ext_resource type="Shader" uid="uid://bw5mmbgeycwua" path="res://shaders/color-invers.gdshader" id="2_wrw87"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_f4oye"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_kvru5"]
|
||||
script/source = "extends LineEdit
|
||||
|
||||
static var styles: = [null, null]
|
||||
static var init_done: = false
|
||||
|
||||
var checkbutton_material: Material
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
if not init_done:
|
||||
init_done = true
|
||||
var style_light: = get_theme_stylebox('read_only')
|
||||
style_light.bg_color = Color.GRAY
|
||||
styles[1] = style_light
|
||||
var style_dark: = style_light.duplicate(true)
|
||||
style_dark.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[0] = style_dark
|
||||
ProjectSettings.connect('settings_changed', on_setting_changed)
|
||||
call_deferred('on_setting_changed')
|
||||
|
||||
|
||||
func on_setting_changed():
|
||||
checkbutton_material = $CheckButton.material
|
||||
apply_colors()
|
||||
|
||||
|
||||
func apply_colors():
|
||||
if ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false):
|
||||
add_theme_stylebox_override('read_only', styles[1])
|
||||
$CheckButton.material = null
|
||||
else:
|
||||
add_theme_stylebox_override('read_only', styles[0])
|
||||
$CheckButton.material = checkbutton_material
|
||||
"
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_wrw87"]
|
||||
shader = ExtResource("2_wrw87")
|
||||
|
||||
@@ -55,7 +20,7 @@ offset_right = 85.0
|
||||
offset_bottom = 27.0
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_f4oye")
|
||||
editable = false
|
||||
script = SubResource("GDScript_kvru5")
|
||||
script = ExtResource("1_kvru5")
|
||||
|
||||
[node name="CheckButton" type="CheckButton" parent="."]
|
||||
material = SubResource("ShaderMaterial_wrw87")
|
||||
|
||||
33
table/settings-toggle.gd
Normal file
@@ -0,0 +1,33 @@
|
||||
extends LineEdit
|
||||
|
||||
static var styles: = [null, null]
|
||||
static var init_done: = false
|
||||
|
||||
var checkbutton_material: Material
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
ProjectSettings.connect('settings_changed', on_setting_changed)
|
||||
if not init_done:
|
||||
init_done = true
|
||||
var style_light: = get_theme_stylebox('read_only')
|
||||
style_light.bg_color = Color.GRAY
|
||||
styles[1] = style_light
|
||||
var style_dark: = style_light.duplicate(true)
|
||||
style_dark.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[0] = style_dark
|
||||
|
||||
|
||||
func on_setting_changed():
|
||||
checkbutton_material = $CheckButton.material
|
||||
apply_colors()
|
||||
|
||||
|
||||
func apply_colors():
|
||||
var is_light: bool = ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false)
|
||||
if is_light:
|
||||
add_theme_stylebox_override('read_only', styles[1])
|
||||
$CheckButton.material = null
|
||||
else:
|
||||
add_theme_stylebox_override('read_only', styles[0])
|
||||
$CheckButton.material = checkbutton_material
|
||||
1
table/settings-toggle.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bh7mb1aeu1uk6
|
||||
@@ -1,51 +1,10 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://5rw652cmnybi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bh7mb1aeu1uk6" path="res://table/settings-toggle.gd" id="1_8lkgc"]
|
||||
[ext_resource type="Shader" uid="uid://bw5mmbgeycwua" path="res://shaders/color-invers.gdshader" id="1_anyuq"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_il5wc"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_vuu0m"]
|
||||
script/source = "extends LineEdit
|
||||
|
||||
static var styles = [[null, null], [null, null]]
|
||||
static var init_done: = false
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
if not init_done:
|
||||
init_done = true
|
||||
var style_0_light = get_theme_stylebox('normal')
|
||||
var style_1_light = get_theme_stylebox('read_only')
|
||||
|
||||
style_0_light.bg_color = Color(0.12, 0.12, 0.12)
|
||||
style_1_light.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[1][0] = style_0_light
|
||||
styles[1][1] = style_1_light
|
||||
|
||||
var style_0_dark = style_0_light.duplicate(true)
|
||||
var style_1_dark = style_1_light.duplicate(true)
|
||||
|
||||
style_0_light.bg_color = Color.GRAY
|
||||
style_1_light.bg_color = Color.GRAY
|
||||
styles[0][0] = style_0_dark
|
||||
styles[0][1] = style_1_dark
|
||||
ProjectSettings.connect('settings_changed', apply_colors)
|
||||
apply_colors()
|
||||
|
||||
|
||||
func apply_colors():
|
||||
if ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false):
|
||||
add_theme_color_override('font_color', Color.BLACK)
|
||||
add_theme_color_override('font_uneditable_color', Color.BLACK)
|
||||
add_theme_stylebox_override('normal', styles[1][0])
|
||||
add_theme_stylebox_override('read_only', styles[1][1])
|
||||
else:
|
||||
add_theme_color_override('font_color', Color(1.0, 0.596, 0.4))
|
||||
add_theme_color_override('font_uneditable_color', Color(1.0, 0.596, 0.4))
|
||||
add_theme_stylebox_override('normal', styles[0][0])
|
||||
add_theme_stylebox_override('read_only', styles[0][1])
|
||||
"
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_8lkgc"]
|
||||
shader = ExtResource("1_anyuq")
|
||||
|
||||
@@ -63,7 +22,7 @@ shortcut_keys_enabled = false
|
||||
middle_mouse_paste_enabled = false
|
||||
selecting_enabled = false
|
||||
deselect_on_focus_loss_enabled = false
|
||||
script = SubResource("GDScript_vuu0m")
|
||||
script = ExtResource("1_8lkgc")
|
||||
|
||||
[node name="CheckButton" type="CheckButton" parent="."]
|
||||
material = SubResource("ShaderMaterial_8lkgc")
|
||||
|
||||
@@ -55,39 +55,22 @@ func defaultselector_color_proc(_i_row: int): return selector_color
|
||||
|
||||
func _assert(val: bool, msg: String = '<не указано>'):
|
||||
if val: return
|
||||
push_error('%s\n' % msg)
|
||||
push_error('ошибка: %s\n' % msg)
|
||||
get_tree().quit(1)
|
||||
|
||||
|
||||
func set_columns_min_size_auto(cc: int):
|
||||
if cc <= 0: return
|
||||
var sizes: = Array()
|
||||
sizes.resize(cc)
|
||||
sizes.fill(size.x / cc)
|
||||
set_columns_min_size(sizes)
|
||||
|
||||
|
||||
## Закрепляет заголовок таблицы.[br]
|
||||
## [param scrl] - Прокрутка родитель таблицы.[br]
|
||||
## [param prnt] - Родитель прокрутки.[br]
|
||||
func pin_header(scrl: ScrollContainer, prnt: Control):
|
||||
scrl.remove_child(header)
|
||||
prnt.add_child(header)
|
||||
var v_separation: = get_theme_constant('v_separation')
|
||||
var v_separation = get_theme_constant('v_separation')
|
||||
header.position = scrl.position - Vector2(0, header.size.y + v_separation)
|
||||
scroll = scrl
|
||||
scroll_adj = scrl.position
|
||||
|
||||
|
||||
## Закрепляет заголовок таблицы.[br]
|
||||
## GridView должен лежать на Scrol. Scrol должен иметь родителя
|
||||
func pin_header2():
|
||||
var scrl = get_parent()
|
||||
var prnt = scrl.get_parent()
|
||||
pin_header(scrl, prnt)
|
||||
header.size.x = scrl.size.x
|
||||
|
||||
|
||||
## Перемещает указатель на одну строку вверх
|
||||
func selector_up():
|
||||
var i_rows: = []
|
||||
@@ -206,17 +189,6 @@ func set_node_property(i_col: int, i_row: int, pname: String, val) -> void:
|
||||
node.set(pname, val)
|
||||
|
||||
|
||||
## Устанавливает свойство ячейки заголовка[br]
|
||||
## [param i_col] - Индекс колонки.[br]
|
||||
## [param pname] - Имя свойства.[br]
|
||||
## [param val] - Значение свойства.[br]
|
||||
## [i]Свойство[/i] [param pname] [i]ячейки должно существовать.[/i]
|
||||
func set_header_property(i_col: int, pname: String, val) -> void:
|
||||
var key: = get_node_key(HEAD_KEY_FORMAT, i_col, 0)
|
||||
var node = nodes[key]
|
||||
node.set(pname, val)
|
||||
|
||||
|
||||
## Возвращает значение поля ячейки.[br]
|
||||
## [param pname] - Имя поля.[br]
|
||||
## [param i_col] - Индекс колонки.[br]
|
||||
@@ -260,13 +232,6 @@ func set_columns_min_size(sizes: Array) -> void:
|
||||
set_nodes_min_size(0, sizes, HEAD_KEY_FORMAT)
|
||||
|
||||
|
||||
func set_headers_min_size(sizes: Array) -> void:
|
||||
for i_col in columns:
|
||||
var key: = get_node_key(HEAD_KEY_FORMAT, i_col, 0)
|
||||
var node = nodes[key]
|
||||
node.custom_minimum_size.x = sizes[i_col]
|
||||
node.set_deferred('size.x', sizes[i_col])
|
||||
|
||||
##
|
||||
func set_columns_aligment(alignments: Array) -> void:
|
||||
var rows_count: = get_rows_count()
|
||||
@@ -449,7 +414,6 @@ func _on_focus_entered(node):
|
||||
|
||||
##
|
||||
func set_header(header_types: Array):
|
||||
_assert(header_types.size() > 0, 'количество колонок в заголовке: %d' % [header_types.size()])
|
||||
_assert(header_types.size() < MAX_INDEX, 'количество колонок в заголовке: %d больше допустимого: %d' % [header_types.size(), MAX_INDEX + 1])
|
||||
if columns == 1:
|
||||
set_columns(header_types.size())
|
||||
@@ -609,31 +573,6 @@ func set_nodes_min_size(i_row: int, sizes: Array, key_format: String = NODE_KEY_
|
||||
node.set_deferred('size.x', sizes[i_col])
|
||||
|
||||
|
||||
## [param hight] - Высота ряда.
|
||||
func set_rows_min_hight(hight: int) -> void:
|
||||
var rows_count = get_rows_count()
|
||||
for i_row in rows_count:
|
||||
set_row_min_hight(i_row, hight)
|
||||
|
||||
|
||||
## [param i_row] - Индекс ряда.
|
||||
## [param hight] - Высота ряда.
|
||||
func set_row_min_hight(i_row: int, hight: int) -> void:
|
||||
for i_col in columns:
|
||||
var key: = get_node_key(NODE_KEY_FORMAT, i_col, i_row)
|
||||
var node = nodes[key]
|
||||
node.custom_minimum_size.y = hight
|
||||
node.set_deferred('size.y', hight)
|
||||
|
||||
|
||||
func set_header_min_hight(hight: int):
|
||||
for i_col in columns:
|
||||
var key: = get_node_key(HEAD_KEY_FORMAT, i_col, 0)
|
||||
var node = nodes[key]
|
||||
node.custom_minimum_size.y = hight
|
||||
node.set_deferred('size.y', hight)
|
||||
|
||||
|
||||
## [param i_col] - Индекс колонки.[br][param i_row] - Индекс ряда.
|
||||
func set_node_text(i_col: int, i_row: int, val: String) -> void:
|
||||
var key: = get_node_key(NODE_KEY_FORMAT, i_col, i_row)
|
||||
|
||||
39
table/ячейка-2.gd
Normal file
@@ -0,0 +1,39 @@
|
||||
extends LineEdit
|
||||
|
||||
static var styles = [[null, null], [null, null]]
|
||||
static var init_done: = false
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
if not init_done:
|
||||
init_done = true
|
||||
var style_0_light = get_theme_stylebox('normal')
|
||||
var style_1_light = get_theme_stylebox('read_only')
|
||||
|
||||
style_0_light.bg_color = Color(0.12, 0.12, 0.12)
|
||||
style_1_light.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[1][0] = style_0_light
|
||||
styles[1][1] = style_1_light
|
||||
|
||||
var style_0_dark = style_0_light.duplicate(true)
|
||||
var style_1_dark = style_1_light.duplicate(true)
|
||||
|
||||
style_0_light.bg_color = Color.GRAY
|
||||
style_1_light.bg_color = Color.GRAY
|
||||
styles[0][0] = style_0_dark
|
||||
styles[0][1] = style_1_dark
|
||||
ProjectSettings.connect('settings_changed', apply_colors)
|
||||
apply_colors()
|
||||
|
||||
|
||||
func apply_colors():
|
||||
if ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false):
|
||||
add_theme_color_override('font_color', Color.BLACK)
|
||||
add_theme_color_override('font_uneditable_color', Color.BLACK)
|
||||
add_theme_stylebox_override('normal', styles[1][0])
|
||||
add_theme_stylebox_override('read_only', styles[1][1])
|
||||
else:
|
||||
add_theme_color_override('font_color', Color(1.0, 0.596, 0.4))
|
||||
add_theme_color_override('font_uneditable_color', Color(1.0, 0.596, 0.4))
|
||||
add_theme_stylebox_override('normal', styles[0][0])
|
||||
add_theme_stylebox_override('read_only', styles[0][1])
|
||||
1
table/ячейка-2.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dqexdg24cp6rq
|
||||
@@ -1,49 +1,9 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dspa16ufrpanp"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dqexdg24cp6rq" path="res://table/ячейка-2.gd" id="1_0fmuf"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_mla3y"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_kmv1d"]
|
||||
script/source = "extends LineEdit
|
||||
|
||||
static var styles = [[null, null], [null, null]]
|
||||
static var init_done: = false
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
if not init_done:
|
||||
init_done = true
|
||||
var style_0_light = get_theme_stylebox('normal')
|
||||
var style_1_light = get_theme_stylebox('read_only')
|
||||
|
||||
style_0_light.bg_color = Color(0.12, 0.12, 0.12)
|
||||
style_1_light.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[1][0] = style_0_light
|
||||
styles[1][1] = style_1_light
|
||||
|
||||
var style_0_dark = style_0_light.duplicate(true)
|
||||
var style_1_dark = style_1_light.duplicate(true)
|
||||
|
||||
style_0_light.bg_color = Color.GRAY
|
||||
style_1_light.bg_color = Color.GRAY
|
||||
styles[0][0] = style_0_dark
|
||||
styles[0][1] = style_1_dark
|
||||
ProjectSettings.connect('settings_changed', apply_colors)
|
||||
apply_colors()
|
||||
|
||||
|
||||
func apply_colors():
|
||||
if ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false):
|
||||
add_theme_color_override('font_color', Color.BLACK)
|
||||
add_theme_color_override('font_uneditable_color', Color.BLACK)
|
||||
add_theme_stylebox_override('normal', styles[1][0])
|
||||
add_theme_stylebox_override('read_only', styles[1][1])
|
||||
else:
|
||||
add_theme_color_override('font_color', Color(1.0, 0.596, 0.4))
|
||||
add_theme_color_override('font_uneditable_color', Color(1.0, 0.596, 0.4))
|
||||
add_theme_stylebox_override('normal', styles[0][0])
|
||||
add_theme_stylebox_override('read_only', styles[0][1])
|
||||
"
|
||||
|
||||
[node name="LineEdit" type="LineEdit"]
|
||||
offset_right = 58.0
|
||||
offset_bottom = 33.0
|
||||
@@ -58,4 +18,4 @@ selecting_enabled = false
|
||||
deselect_on_focus_loss_enabled = false
|
||||
caret_blink = true
|
||||
caret_blink_interval = 0.1
|
||||
script = SubResource("GDScript_kmv1d")
|
||||
script = ExtResource("1_0fmuf")
|
||||
|
||||
24
table/ячейка-цвет.gd
Normal file
@@ -0,0 +1,24 @@
|
||||
extends ColorPickerButton
|
||||
|
||||
static var styles = [null, null]
|
||||
static var init_done: = false
|
||||
|
||||
|
||||
func _init() -> void:
|
||||
if not init_done:
|
||||
init_done = true
|
||||
var style_light: = get_theme_stylebox('normal')
|
||||
style_light.bg_color = Color.GRAY
|
||||
styles[1] = style_light
|
||||
var style_dark: = style_light.duplicate(true)
|
||||
style_dark.bg_color = Color(0.12, 0.12, 0.12)
|
||||
styles[0] = style_dark
|
||||
ProjectSettings.connect('settings_changed', apply_colors)
|
||||
apply_colors()
|
||||
|
||||
|
||||
func apply_colors():
|
||||
if ProjectSettings.get_setting('application/config/%s' % 'Цвет темы программы', false):
|
||||
add_theme_stylebox_override('normal', styles[1])
|
||||
else:
|
||||
add_theme_stylebox_override('normal', styles[0])
|
||||
1
table/ячейка-цвет.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://b36c83manfems
|
||||
@@ -1,10 +1,8 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://cug5xjbfdm7x7"]
|
||||
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ce8lu"]
|
||||
[ext_resource type="Script" uid="uid://b36c83manfems" path="res://table/ячейка-цвет.gd" id="1_ce8lu"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_dds53"]
|
||||
script/source = "extends ColorPickerButton
|
||||
"
|
||||
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ce8lu"]
|
||||
|
||||
[node name="ячейка-цвет" type="ColorPickerButton"]
|
||||
anchors_preset = 15
|
||||
@@ -13,4 +11,4 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/focus = SubResource("StyleBoxEmpty_ce8lu")
|
||||
script = SubResource("GDScript_dds53")
|
||||
script = ExtResource("1_ce8lu")
|
||||
|
||||