Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
555 lines (496 loc) · 28 KB
/
Copy pathindex.html
File metadata and controls
555 lines (496 loc) · 28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
<!-- index.html — Zima2 USBL Web PWA (структура) -->
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="theme-color" content="#1a1a2e">
<title>AzimuthWebSuite</title>
<link rel="stylesheet" href="styles.css">
<link rel="manifest" href="manifest.json">
</head>
<body>
<div id="app">
<!-- ===== ВЕРХНЯЯ ПАНЕЛЬ ===== -->
<div id="top-bar">
<div id="connection-indicator" title="Статус соединения"></div>
<span id="device-label">Zima2 USBL</span>
<span id="status-text">Не подключено</span>
<button id="btn-theme" class="top-btn btn-theme" onclick="App.cycleTheme()" title="Тема">🎨</button>
<button id="btn-connection" class="top-btn btn-connect" onclick="App.toggleConnection()">🔌 AZM</button>
<button id="btn-gnss" class="top-btn btn-gnss" onclick="App.toggleGNSS()">📡 GNSS</button>
<button id="btn-interrogation" class="top-btn btn-start" onclick="App.toggleInterrogation()" disabled>▶ Опрос</button>
<button id="btn-settings" class="top-btn btn-settings" onclick="App.openSettings()" >⚙ Настройки</button>
<!-- Выпадающая кнопка Инструменты -->
<div class="dropdown" style="display:inline-block; position:relative;">
<button class="top-btn btn-tools" onclick="App.toggleDropdown('tools-dropdown')">🔧 Инструменты ▾</button>
<div id="tools-dropdown" class="dropdown-menu">
<div class="dropdown-item" onclick="UIWizard.resetWizard(); UIWizard.show(); App.closeAllDropdowns();">⚙ Мастер настройки</div>
<div class="dropdown-item" onclick="App.toggleTopoPanel(); App.closeAllDropdowns();">🌐 Ручная топопривязка</div>
<div class="dropdown-item" onclick="App.toggleReferencePanel(); App.closeAllDropdowns();">⚓ Опорные маяки</div>
<div class="dropdown-item" onclick="App.exportDRMS(); App.closeAllDropdowns();">📊 Отчёт DRMS</div>
<!-- Подменю POI -->
<div class="dropdown-item">📍 POI ▸<div class="submenu">
<div class="dropdown-item" onclick="App.loadPOI(); App.closeAllDropdowns();">📂 Загрузить из CSV</div>
<div class="dropdown-item" onclick="App.exportPOI_CSV(); App.closeAllDropdowns();">💾 Сохранить в CSV</div>
<div class="dropdown-item" onclick="App.clearPOI(); App.closeAllDropdowns();">🗑 Очистить все</div>
</div>
</div>
<div class="dropdown-item" onclick="window.open('tools/coord-converter.html','_blank'); App.closeAllDropdowns();">🔄 Конвертер координат</div>
<div class="dropdown-item" onclick="window.open('tools/azmclogparser.html','_blank'); App.closeAllDropdowns();">🔄 Парсер логов AzimuthConsole</div>
<!-- Подменю Калибровки -->
<div class="dropdown-item">🔧 Калибровки ▸<div class="submenu">
<div class="dropdown-item" onclick="App.toggleCalibration(); App.closeAllDropdowns();">🔧 Калибровка φ (по облаку точек)</div>
<div class="dropdown-item" onclick="App.openDRMSWithPhi(); App.closeAllDropdowns();">🔧 Калибровка φ (по известной точке)</div>
<div class="dropdown-item" onclick="App.toggleAntennaCalibration(); App.closeAllDropdowns();">⚠📡 Калибровка антенны (таблица)</div>
</div>
</div>
</div>
</div>
<!-- Выпадающая кнопка Экспорт -->
<div class="dropdown" style="display:inline-block; position:relative;">
<button class="top-btn btn-export" onclick="App.toggleDropdown('export-dropdown')">📤 Экспорт ▾</button>
<div id="export-dropdown" class="dropdown-menu">
<div class="dropdown-item" onclick="App.exportCSV(); App.closeAllDropdowns();">📊 CSV (Антенна + маяк)</div>
<div class="dropdown-item" onclick="App.exportGGA(); App.closeAllDropdowns();">📡 NMEA GGA (Маяк)</div>
<div class="dropdown-item" onclick="App.exportAntennaGGA(); App.closeAllDropdowns();">📡 NMEA GGA (Антенна)</div>
<div class="dropdown-item" onclick="App.exportPSIMSSB(); App.closeAllDropdowns();">📡 NMEA PSIMSSB (Маяк)</div>
<div class="dropdown-item" onclick="App.exportPSIMSSB_NE(); App.closeAllDropdowns();">📡 NMEA PSIMSSB UTM (Маяк)</div>
<div class="dropdown-item" onclick="App.exportDXF(); App.closeAllDropdowns();">📐 DXF (CAD)</div>
<div class="dropdown-item" onclick="App.exportTracksKML(); App.closeAllDropdowns();">🗺 KML</div>
</div>
</div>
<!-- Выпадающая кнопка Лог -->
<div class="dropdown" style="display:inline-block; position:relative;">
<button class="top-btn btn-log" onclick="App.toggleDropdown('log-dropdown')">📋 Лог ▾</button>
<div id="log-dropdown" class="dropdown-menu">
<div class="dropdown-item" onclick="App.saveLog(); App.closeAllDropdowns();">💾 Сохранить</div>
<div id="log-load-item" class="dropdown-item" onclick="App.loadLog(); App.closeAllDropdowns();">📂 Открыть</div>
<div class="dropdown-item" onclick="App.showLogAnalysis(); App.closeAllDropdowns();">🔍 Анализ</div>
<div id="log-play-item" class="dropdown-item" onclick="App.togglePlayback(); App.closeAllDropdowns();">▶ Воспроизвести</div>
<div id="log-stop-item" class="dropdown-item" onclick="App.togglePlayback(); App.closeAllDropdowns();" style="display:none;">⏹ Остановить</div>
</div>
</div>
</div>
<!-- ===== КАРТА ===== -->
<div id="map-container">
<canvas id="map-canvas"></canvas>
<!-- Информация антенны -->
<div id="antenna-info">
<div><span class="ai-label">Широта:</span> <span class="ai-value" id="ai-lat">--</span></div>
<div><span class="ai-label">Долгота:</span> <span class="ai-value" id="ai-lon">--</span></div>
<div id="ai-quality-row">
<span class="ai-label">⚓ Точность:</span> <span class="ai-value quality-none" id="ai-quality">--</span>
</div>
<div id="ai-gnss-row">
<div><span class="ai-label">GNSS:</span> <span class="ai-value" id="ai-gnss-lat">--</span></div>
<div><span class="ai-label"></span> <span class="ai-value" id="ai-gnss-lon">--</span></div>
<div><span class="ai-label">Расхождение:</span> <span class="ai-value" id="ai-diff">--</span></div>
</div>
<div><span class="ai-label">Азимут:</span> <span class="ai-value" id="ai-hdg">--</span>°</div>
<div><span class="ai-label">Скорость:</span> <span class="ai-value" id="ai-spd">--</span> м/с</div>
<div><span class="ai-label">Курс:</span> <span class="ai-value" id="ai-crs">--</span>°</div>
<div><span class="ai-label">Глубина:</span> <span class="ai-value" id="ai-dpt">--</span> м</div>
<div><span class="ai-label">Темп.:</span> <span class="ai-value" id="ai-tmp">--</span>°C</div>
<div><span class="ai-label">Pitch:</span> <span class="ai-value" id="ai-pitch">--</span>°</div>
<div><span class="ai-label">Roll:</span> <span class="ai-value" id="ai-roll">--</span>°</div>
</div>
<!-- Управление треками -->
<div id="tracks-control">
<button class="track-btn active" id="btn-tracks-show" onclick="App.toggleTracks()">📐 Треки</button>
<button class="track-btn" id="btn-tracks-clear" onclick="App.clearTracks()">🗑 Очистить</button>
<button id="btn-ruler" class="track-btn" onclick="App.toggleRuler()">📏 Линейка</button>
<div id="playback-progress">
<div id="playback-progress-fill"></div>
</div>
<div id="playback-speed-control">
<button id="btn-speed-down" class="track-btn">−</button>
<span id="playback-speed-current">1x</span>
<button id="btn-speed-up" class="track-btn">+</button>
</div>
</div>
<!-- Шкала -->
<div id="scale-bar"></div>
<!-- Панель топопривязки -->
<div id="topo-panel">
<h3>🌐 Топопривязка</h3>
<div id="topo-gnss-status">Внешний GNSS не подключен</div>
<div class="topo-row">
<label>Режим:</label>
<select id="topo-mode" class="panel-select">
<option value="full">🌍 Полная (lat/lon + курс)</option>
<option value="heading_only">🧭 Только курс (для ⚓)</option>
</select>
</div>
<div id="topo-hint" class="topo-hint" style="display:none;"></div>
<div class="topo-row">
<label>Широта:</label>
<input type="text" id="topo-lat" placeholder="55.123456">
</div>
<div class="topo-row">
<label>Долгота:</label>
<input type="text" id="topo-lon" placeholder="37.654321">
</div>
<div class="topo-row">
<label>Курс (°):</label>
<input type="number" id="topo-hdg" placeholder="0" min="0" max="360" step="0.1" value="0">
</div>
<div class="topo-buttons">
<button class="btn-get-gnss" onclick="App.getPhoneGPS()">📱 GPS</button>
<button class="btn-apply-topo" onclick="App.applyTopoBinding()">✓ Применить</button>
<button class="btn-cancel-topo" onclick="App.toggleTopoPanel()">✕ Отмена</button>
<button class="btn-reset-topo" onclick="App.clearTopoBinding()">🗑 Сброс</button>
</div>
</div>
<!-- Панель опорных маяков -->
<div id="reference-panel">
<h3 class="panel-title panel-title-accent">⚓ Опорные маяки</h3>
<div id="ref-status" class="panel-subtitle">
Режим не активирован
</div>
<div id="ref-list" style="margin-bottom:12px;"></div>
<div class="panel-divider">
<h4 class="panel-subtitle" style="text-align:left; margin-bottom:8px;">Добавить опорный маяк</h4>
<div class="topo-row">
<label>Маяк:</label>
<select id="ref-addr" class="panel-select"></select>
</div>
<div class="topo-row">
<label>Широта:</label>
<input type="text" id="ref-lat" placeholder="55.123456">
</div>
<div class="topo-row">
<label>Долгота:</label>
<input type="text" id="ref-lon" placeholder="37.654321">
</div>
<div class="topo-row">
<label>Глубина (м):</label>
<input type="number" id="ref-depth" placeholder="0.0" step="0.1">
</div>
<button class="panel-btn panel-btn-apply btn-full" onclick="App.addReferenceBeacon()">➕ Добавить</button>
</div>
<div id="ref-state" class="panel-info"></div>
<div class="btn-row">
<button id="ref-btn-toggle" class="panel-btn panel-btn-apply" onclick="App.toggleReferenceMode()">▶ Активировать</button>
<button class="panel-btn panel-btn-topo" onclick="App.openTopoHeadingOnly()">🧭 Задать курс</button>
<button class="panel-btn panel-btn-close" onclick="App.toggleReferencePanel()">✕ Закрыть</button>
</div>
</div>
<!-- Панель калибровки -->
<div id="calibration-panel">
<h3 style="color:var(--border-accent); text-align:center; margin-bottom:16px;">🔧 Калибровка φ</h3>
<div class="topo-row">
<label>От угла (°):</label>
<input type="number" id="cfg-cal-from" value="0" min="0" max="360" step="1">
</div>
<div class="topo-row">
<label>До угла (°):</label>
<input type="number" id="cfg-cal-to" value="360" min="0" max="360" step="1">
</div>
<div class="topo-row">
<label>Шаг (°):</label>
<input type="number" id="cfg-cal-step" value="1" min="0.1" max="10" step="0.1">
</div>
<div class="topo-row">
<label>Точек:</label>
<input type="number" id="cfg-cal-points" value="100" min="10" max="1000" step="10">
</div>
<div id="cal-status" style="text-align:center; font-size:12px; color:var(--text-secondary); margin:10px 0;">Собрано: 0</div>
<div class="topo-buttons">
<button id="btn-cal-start" class="top-btn btn-get-gnss" onclick="App.startCalibration()">▶ Старт</button>
<button id="btn-cal-stop" class="top-btn btn-reset-topo" onclick="App.stopCalibration()" disabled>⏹ Стоп</button>
<button class="top-btn btn-cancel-topo" onclick="App.toggleCalibration()">✕ Закрыть</button>
</div>
</div>
<!-- Панель настройки маяка -->
<div id="remote-config-panel">
<h3 class="panel-title panel-title-topo">⚙ Настройка маяка</h3>
<div class="panel-subtitle">
Текущий адрес: <span id="remote-current-addr" class="status-accent">--</span>
</div>
<div class="topo-row">
<label>Новый адрес:</label>
<input type="number" id="cfg-remote-addr" value="1" min="1" max="16" step="1">
</div>
<div class="topo-row">
<label>Солёность (PSU):</label>
<input type="number" id="cfg-remote-salinity" value="0" min="0" max="40" step="0.1">
</div>
<div id="remote-config-status" style="text-align:center; font-size:12px; color:var(--text-secondary); margin:10px 0; min-height:18px;"></div>
<div class="topo-buttons">
<button class="btn-apply-topo" onclick="App.sendRemoteConfig()">📤 Отправить</button>
<button class="btn-cancel-topo" onclick="App.toggleRemoteConfig()">✕ Закрыть</button>
</div>
</div>
<!-- Панель для разных отчетов -->
<div id="analysis-panel">
<h3 id="analysis-title" class="panel-title panel-title-export">🔍 Анализ лога</h3>
<div id="analysis-content" style="font-size:12px; line-height:1.6;"></div>
<div id="drms-phi-section" class="drms-section">
<h4>🔧 Калибровка φ по известной точке</h4>
<div id="drms-phi-beacon-select" style="margin-bottom:8px; display:none;">
<label class="drms-info" style="display:block;">Маяк:</label>
<select id="drms-phi-beacon" class="panel-select" style="width:100%; margin-top:4px;"></select>
</div>
<div class="drms-info">
Центроид: <span id="drms-phi-centroid" class="status-accent">—</span>
</div>
<div class="drms-row">
<label>Широта реал.:</label>
<input type="text" id="drms-phi-real-lat" placeholder="55.123456">
</div>
<div class="drms-row">
<label>Долгота реал.:</label>
<input type="text" id="drms-phi-real-lon" placeholder="37.654321">
</div>
<button id="drms-phi-calc-btn" class="panel-btn panel-btn-apply btn-full">Вычислить φ</button>
<div id="drms-phi-result" class="drms-result">
Вычисленный φ: <span id="drms-phi-value" class="drms-result-value"></span>°
</div>
<button id="drms-phi-apply-btn" class="panel-btn panel-btn-apply btn-full" style="display:none;">✓ Применить φ</button>
</div>
<div class="btn-row">
<button onclick="App.copyAnalysis()" class="panel-btn panel-btn-start">📋 Копировать</button>
<button id="analysis-download-btn" onclick="App.downloadDRMS()" class="panel-btn panel-btn-export" style="display:none;">💾 Скачать CSV</button>
<button onclick="App.closeAnalysis()" class="panel-btn panel-btn-close">✕ Закрыть</button>
</div>
</div>
<!-- Панель калибровки таблицы антенны -->
<div id="antenna-calibration-panel">
<h3 class="panel-title panel-title-warning">📡 Калибровка антенны (таблица)</h3>
<div id="ac-status" class="panel-subtitle" style="font-size:14px; color:var(--text-primary);">Собрано точек: 0</div>
<div id="ac-progress" class="panel-subtitle">Таблица не построена</div>
<div id="ac-centroid" class="panel-subtitle" style="color:var(--border-warning);">Центроида: недостаточно данных</div>
<div id="ac-coverage" class="panel-subtitle">Покрытие: --</div>
<div class="topo-row">
<label>Шаг угла (°):</label>
<input type="number" id="ac-angle-step" value="1.0" min="0.5" max="10" step="0.5" class="input-narrow">
</div>
<div class="panel-buttons">
<button id="ac-btn-start" class="panel-btn panel-btn-start" onclick="UIAntennaCalibration.startCalibration()">▶ Старт</button>
<button id="ac-btn-stop" class="panel-btn panel-btn-danger" onclick="UIAntennaCalibration.stopCalibration()">⏹ Стоп</button>
<button id="ac-btn-build" class="panel-btn panel-btn-warning" onclick="UIAntennaCalibration.buildTable()">🔨 Построить</button>
<button id="ac-btn-apply" class="panel-btn panel-btn-apply" onclick="UIAntennaCalibration.applyTable()">✓ Применить</button>
<button id="ac-btn-download" class="panel-btn panel-btn-start" onclick="UIAntennaCalibration.downloadTable()">💾 Скачать</button>
<button id="ac-btn-download-full" class="panel-btn panel-btn-topo" onclick="UIAntennaCalibration.downloadFullData()">📊 Полный отчёт</button>
<button class="panel-btn panel-btn-close" onclick="UIAntennaCalibration.close()">✕ Закрыть</button>
</div>
</div>
</div>
<!-- ===== ПАНЕЛЬ МАЯКОВ ===== -->
<div id="beacons-bar" class="empty"></div>
<!-- ===== FOOTER ===== -->
<footer class="footer">
<div class="footer-content">
<div class="footer-links">
<a href="https://github.com/ucnl/AzimuthWebSuite/" target="_blank" rel="noopener" class="footer-link">⭐ GitHub</a>
<a href="https://docs.unavlab.com/AzimuthWebSuite/docs/guide.html" target="_blank" rel="noopener" class="footer-link">📖 AzimuthWebSuite Docs</a>
<a href="https://docs.unavlab.com/navigation_and_tracking_systems_ru.html#zima" target="_blank" rel="noopener" class="footer-link">📖 Zima2 Docs</a>
<a href="https://github.com/ucnl/AzimuthWebSuite/blob/main/LICENSE" target="_blank" rel="noopener" class="footer-link">⚖️ GNU GPL v3.0 License</a>
</div>
<div class="footer-info">
<span class="footer-copy">© 2026 <span data-i18n="org_name">(C) UC&NL</span></span>
<span class="footer-desc" data-i18n="footer_desc">Pure Open Source</span>
<a href="https://docs.unavlab.com/AzimuthWebSuite/CHANGELOG.html"
target="_blank" rel="noopener"
style="font-size:9px; color:inherit; text-decoration:none;"
title="История изменений">
v<span id="app-version">--</span>
</a>
</div>
</div>
</footer>
</div>
<!-- ===== МОДАЛЬНОЕ ОКНО НАСТРОЕК ===== -->
<div id="settings-overlay">
<div id="settings-modal">
<div id="settings-header">
<h3>⚙ Настройки</h3>
<button onclick="App.closeSettings()" title="Закрыть">✕</button>
</div>
<div id="settings-body">
<!-- Секция: Параметры опроса -->
<div class="settings-section">
<h4>📡 Параметры опроса</h4>
<div class="settings-row">
<label>Маска адресов:</label>
<input type="number" id="cfg-mask" value="1" min="0" max="65535" onchange="App.onMaskChanged()">
</div>
<div id="addr-checkboxes"></div>
<div class="settings-row">
<label>Макс. дальность (м):</label>
<input type="number" id="cfg-maxdist" value="1000" min="100" max="5000" step="50">
</div>
<div class="settings-row">
<label>Солёность (PSU):</label>
<input type="number" id="cfg-salinity" value="0.0" min="0" max="40" step="0.1">
</div>
<div class="settings-row">
<label>Скорость звука (м/с):</label>
<input type="number" id="cfg-soundspeed" placeholder="Авто" min="1300" max="1800" step="0.1">
</div>
</div>
<!-- Секция: скорость порта GNSS -->
<div class="settings-section">
<h4>📡 GNSS-компас</h4>
<div class="settings-row">
<label>Режим компаса:</label>
<select id="cfg-compass-mode" class="settings-select">
<option value="auto">Авто (HDT предпочт.)</option>
<option value="hdt">Только HDT (True)</option>
<option value="magnetic">Только магнитный</option>
</select>
</div>
<div class="settings-row">
<label>Скорость (бод):</label>
<select id="cfg-gnss-baud" class="settings-select">
<option value="4800">4800</option>
<option value="9600">9600</option>
<option value="19200">19200</option>
<option value="38400">38400</option>
<option value="57600">57600</option>
<option value="115200">115200</option>
</select>
</div>
</div>
<!-- Секция: Смещения антенны -->
<div class="settings-section">
<h4>📏 Смещения антенны</h4>
<div class="settings-row">
<label>X (м):</label>
<input type="number" id="cfg-offsetx" value="0.0" step="0.01">
</div>
<div class="settings-row">
<label>Y (м):</label>
<input type="number" id="cfg-offsety" value="0.0" step="0.01">
</div>
<div class="settings-row">
<label>φ антенны (°):</label>
<input type="number" id="cfg-phi" value="0.0" min="0" max="360" step="0.1">
</div>
<div class="settings-row">
<label>Калибровка:</label>
<div class="settings-btn-row">
<button class="panel-btn panel-btn-start" onclick="App.loadCalibrationFile()">📂 Загрузить</button>
<button id="btn-reset-calibration" class="panel-btn panel-btn-danger" onclick="App.resetCalibration()" style="display:none;">🗑 Сброс</button>
</div>
</div>
<div class="settings-row" id="calibration-info" style="display:none;">
<label></label>
<span id="calibration-status" style="font-size:11px; color:var(--text-secondary);"></span>
</div>
</div>
<!-- Секция: Режим антенны -->
<div class="settings-section">
<h4>📍 Режим антенны</h4>
<div class="settings-row">
<label>Режим работы:</label>
<select id="cfg-antenna-mode" class="settings-select">
<option value="geographic">🌍 Географический</option>
<option value="cartesian_fixed">📐 Декартов (неподвижная)</option>
<option value="beacon_referenced">⚓ По опорным маякам</option>
</select>
</div>
<div class="settings-row">
<small style="color: var(--text-secondary);">Декартов режим: антенна в (0,0,0), координаты маяков в метрах (X→право, Y→вперёд, Z→глубина)</small>
</div>
</div>
<!-- Секция: Фильтры DH -->
<div class="settings-section">
<h4>🎯 Фильтр маяка (DH)</h4>
<div class="settings-row">
<label>Макс. скорость (м/с):</label>
<input type="number" id="cfg-max-beacon-speed"
value="2.0" min="0.5" max="5" step="0.1">
<span style="font-size:10px; margin-left:8px;">(0.5 - 5 м/с)</span>
</div>
<div class="settings-row">
<small style="color: var(--text-secondary);">Точки маяка с большей скоростью отбрасываются</small>
</div>
<h4 style="margin-top:16px;">⚓ Фильтр судна (DH, режим по опорным)</h4>
<div class="settings-row">
<label>Макс. скорость судна (м/с):</label>
<input type="number" id="cfg-max-ship-speed"
value="2.0" min="0.5" max="50" step="0.1">
<span style="font-size:10px; margin-left:8px;">(0.5 - 50 м/с)</span>
</div>
<div class="settings-row">
<small style="color: var(--text-secondary);">Позиции судна с большей скоростью отбрасываются (только в режиме ⚓ По опорным)</small>
</div>
</div>
<!-- Секция: Треки -->
<div class="settings-section">
<h4>📐 Треки маяков</h4>
<div class="settings-row">
<label>Макс. точек на экране:</label>
<input type="number" id="cfg-maxpoints" value="1000" min="50" max="50000" step="50">
</div>
<div class="settings-row">
<label>Мин. дистанция (м):</label>
<input type="number" id="cfg-minpointdist" value="0.5" min="0.1" max="50" step="0.1">
</div>
</div>
</div>
<div id="settings-footer">
<button class="btn-apply" onclick="App.applySettings()">✓ Применить</button>
<button class="btn-close-settings" onclick="App.closeSettings()">Закрыть</button>
</div>
</div>
</div>
<!-- ===== Стартовый мастер ===== -->
<div id="wizard-overlay">
<div id="wizard-modal">
<h3 id="wizard-title" style="color:var(--border-accent); text-align:center; margin-bottom:16px;">⚙ Настройка</h3>
<div id="wizard-body" style="margin-bottom:20px;"></div>
<div id="wizard-buttons" style="display:flex; gap:8px; justify-content:space-between; align-items:center;"></div>
</div>
</div>
<!-- ===== СКРИПТЫ (порядок важен) ===== -->
<script src="log-storage.js"></script>
<script src="logger.js"></script>
<script src="log-analyzer.js"></script>
<script src="geo-utils.js"></script>
<script src="color-cache.js"></script>
<script src="vincenty.js"></script>
<script src="haversine.js"></script>
<script src="dh-filter.js"></script>
<script src="achod-bearing-filter.js"></script>
<script src="median.js"></script>
<script src="smoother.js"></script>
<script src="dh-filter-xyz.js"></script>
<script src="smoother-xyz.js"></script>
<script src="calibration.js"></script>
<script src="gnss-parser.js"></script>
<script src="azm-parser.js"></script>
<script src="webview-stub.js"></script>
<script src="serial-bridge.js"></script>
<script src="antenna-corrector.js"></script>
<script src="antenna-table-calibration.js"></script>
<script src="sound-speed.js"></script>
<script src="azm-manager.js"></script>
<script src="utm.js"></script>
<script src="tracks.js"></script>
<script src="poi-manager.js"></script>
<script src="export.js"></script>
<script src="modules/ui-themes.js"></script>
<script src="modules/ui-settings.js"></script>
<script src="modules/ui-ruler.js"></script>
<script src="modules/ui-topo.js"></script>
<script src="modules/ui-calibration.js"></script>
<script src="modules/ui-antenna-calibration.js"></script>
<script src="modules/ui-canvas.js"></script>
<script src="modules/ui-wizard.js"></script>
<script src="app.js"></script>
<script>
if ('serviceWorker' in navigator && location.protocol.startsWith('http')) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('sw.js')
.then((reg) => console.log('[SW] Зарегистрирован:', reg.scope))
.catch((err) => console.warn('[SW] Ошибка:', err));
});
}
</script>
</body>
</html>