From 938248d1501ff634154577d1a9de374b313fe52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A1=D0=BE?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2=D1=8C=D0=B5=D0=B2?= Date: Wed, 3 Jun 2026 09:28:09 +0300 Subject: [PATCH] =?UTF-8?q?pcp-tgu-ops-ui:=20=D0=BA=D1=80=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=BC=D0=B0=D1=80=D1=88=D1=80=D1=83=D1=82=D0=B0=20=E2=80=94=20?= =?UTF-8?q?=D0=BE=D0=B4=D0=B8=D0=BD=20=D0=B7=D0=BD=D0=B0=D0=BA=20=D0=BF?= =?UTF-8?q?=D0=BE=D1=81=D0=BB=D0=B5=20=D0=B7=D0=B0=D0=BF=D1=8F=D1=82=D0=BE?= =?UTF-8?q?=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pcp-tgu-ops-ui/src/features/tgu-editor/EditorPanels.tsx | 3 ++- .../pcp-tgu-ops-ui/src/features/tgu-editor/TguEditorTab.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/services/pcp-tgu-ops-ui/src/features/tgu-editor/EditorPanels.tsx b/services/pcp-tgu-ops-ui/src/features/tgu-editor/EditorPanels.tsx index 58c1db1..822f593 100644 --- a/services/pcp-tgu-ops-ui/src/features/tgu-editor/EditorPanels.tsx +++ b/services/pcp-tgu-ops-ui/src/features/tgu-editor/EditorPanels.tsx @@ -359,7 +359,8 @@ export function ShootPanel({ value={routeRoll ?? 0} onChange={(event) => { const deg = Number.parseFloat(event.target.value); - if (Number.isFinite(deg)) onRouteRollSet(deg); + // Крен — не точнее одного знака после запятой. + if (Number.isFinite(deg)) onRouteRollSet(Math.round(deg * 10) / 10); }} /> diff --git a/services/pcp-tgu-ops-ui/src/features/tgu-editor/TguEditorTab.tsx b/services/pcp-tgu-ops-ui/src/features/tgu-editor/TguEditorTab.tsx index f486906..a3bfedd 100644 --- a/services/pcp-tgu-ops-ui/src/features/tgu-editor/TguEditorTab.tsx +++ b/services/pcp-tgu-ops-ui/src/features/tgu-editor/TguEditorTab.tsx @@ -305,7 +305,8 @@ export function TguEditorTab({ selectedSpacecraftId, selectedPlan, appliedRange, const half = Math.min(DEFAULT_ROUTE_DURATION_MS, passDurationMs) / 2; const mid = (selectedShootPass.startMs + selectedShootPass.endMs) / 2; setRouteWindow({ startMs: mid - half, endMs: mid + half }); - setRouteRoll(selectedShootPass.rollDeg ?? 0); + // Крен — не точнее одного знака после запятой (как и при ручном вводе). + setRouteRoll(Math.round((selectedShootPass.rollDeg ?? 0) * 10) / 10); }, [rightMode, selectedShootPass]); useEffect(() => {