From f3c42568dc7190071c7125546698ad33df71d654 Mon Sep 17 00:00:00 2001 From: goodmice Date: Thu, 14 Oct 2021 11:35:38 +0500 Subject: [PATCH] =?UTF-8?q?hotfix.=20CF2-75,=20CF2-76.=20=D0=A1=D0=BA?= =?UTF-8?q?=D0=BE=D1=80=D0=BE=D1=81=D1=82=D1=8C=20=D1=82=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=B1=D0=BB=D0=BE=D0=BA=D0=B0=20=D0=B1=D0=B5=D1=80=D1=91=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BF=D0=BE=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB?= =?UTF-8?q?=D1=8E;=20=D0=9C=D0=BE=D0=BC=D0=B5=D0=BD=D1=82=20=D1=80=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B0=20=D0=BC=D0=B5=D0=BD=D1=8C=D1=88=D0=B5?= =?UTF-8?q?=201=20=D1=81=D1=87=D0=B8=D1=82=D0=B0=D0=B5=D1=82=D1=81=D1=8F?= =?UTF-8?q?=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/TelemetryView/index.jsx | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/pages/TelemetryView/index.jsx b/src/pages/TelemetryView/index.jsx index 22f5e28..fbbe5bd 100644 --- a/src/pages/TelemetryView/index.jsx +++ b/src/pages/TelemetryView/index.jsx @@ -181,12 +181,22 @@ export default function TelemetryView({idWell}) { const handleDataSaub = (data) => { if (data) { + data.forEach((_, idx) => { + if (data[idx].rotorSpeed < 1) + data[idx].rotorSpeed = 0; + data[idx].blockSpeed = Math.abs(data[idx].blockSpeed) + }) setDataSaub(data) } } const handleDataSpin = (data) => { if (data) { + data.forEach((_, idx) => { + if (data[idx].rotorSpeed < 1) + data[idx].rotorSpeed = 0; + data[idx].blockSpeed = Math.abs(data[idx].blockSpeed) + }) setDataSpin(data) } } @@ -230,7 +240,7 @@ export default function TelemetryView({idWell}) { - + {paramsGroups.map((group, index) => - )} + + )}