Расчет с выравниванием СДИ
This commit is contained in:
+3
@@ -47,4 +47,7 @@ data class AngularMotionPointDTO(
|
||||
val wdY: Double,
|
||||
val wdZ: Double,
|
||||
val sdi: Double,
|
||||
val sdiLeft: Double?,
|
||||
val sdiRight: Double?,
|
||||
val sdiSpread: Double?,
|
||||
)
|
||||
|
||||
+3
@@ -117,6 +117,9 @@ class AngularMotionService(
|
||||
wdY = point.wd.y,
|
||||
wdZ = point.wd.z,
|
||||
sdi = point.sdi,
|
||||
sdiLeft = point.sdiLeft,
|
||||
sdiRight = point.sdiRight,
|
||||
sdiSpread = point.sdiSpread,
|
||||
)
|
||||
},
|
||||
)
|
||||
|
||||
+5
-2
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user