Расчет с выравниванием СДИ

This commit is contained in:
emelianov
2026-06-15 16:05:45 +03:00
parent 88fb380be4
commit f49709d544
8 changed files with 115 additions and 10 deletions
@@ -451,7 +451,7 @@
el('angular-motion-export-csv').disabled = rows.length === 0;
const body = el('angular-motion-result-body');
if (rows.length === 0) {
body.innerHTML = '<tr><td colspan="14" class="text-center text-muted py-4">Нет данных</td></tr>';
body.innerHTML = '<tr><td colspan="17" class="text-center text-muted py-4">Нет данных</td></tr>';
return;
}
body.innerHTML = rows.map(point => `
@@ -470,6 +470,9 @@
<td>${escapeHtml(formatNumber(point.wdY, 7))}</td>
<td>${escapeHtml(formatNumber(point.wdZ, 7))}</td>
<td>${escapeHtml(formatNumber(point.sdi, 4))}</td>
<td>${escapeHtml(formatNumber(point.sdiLeft, 4))}</td>
<td>${escapeHtml(formatNumber(point.sdiRight, 4))}</td>
<td>${escapeHtml(formatNumber(point.sdiSpread, 4))}</td>
</tr>
`).join('');
drawMap(true);
@@ -500,7 +503,7 @@
function exportCsv() {
const rows = Array.isArray(state.result?.points) ? state.result.points : [];
if (rows.length === 0) return;
const header = ['time', 'revolution', 'tangDeg', 'krenDeg', 'riskDeg', 'groundLatitudeDeg', 'groundLongitudeDeg', 'omegaX', 'omegaY', 'omegaZ', 'wdX', 'wdY', 'wdZ', 'sdi'];
const header = ['time', 'revolution', 'tangDeg', 'krenDeg', 'riskDeg', 'groundLatitudeDeg', 'groundLongitudeDeg', 'omegaX', 'omegaY', 'omegaZ', 'wdX', 'wdY', 'wdZ', 'sdi', 'sdiLeft', 'sdiRight', 'sdiSpread'];
const lines = [header.join(';')];
rows.forEach(row => {
lines.push(header.map(key => row[key] ?? '').join(';'));
@@ -158,10 +158,13 @@
<th>wd.y</th>
<th>wd.z</th>
<th>СДИ</th>
<th>СДИ лев.</th>
<th>СДИ прав.</th>
<th>ΔСДИ</th>
</tr>
</thead>
<tbody id="angular-motion-result-body">
<tr><td colspan="14" class="text-center text-muted py-4">Нет данных</td></tr>
<tr><td colspan="17" class="text-center text-muted py-4">Нет данных</td></tr>
</tbody>
</table>
</div>