From 86e93b3d4514eba09854333bcf1d88b399df9e40 Mon Sep 17 00:00:00 2001 From: H Vs Date: Thu, 7 Dec 2023 18:02:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=BD=BF=E7=94=A8=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E6=AC=A1=E8=AE=BE=E5=A4=87=E4=B8=8B=E5=8F=91?= =?UTF-8?q?=E6=A0=A1=E5=87=86=E5=80=BC=E4=BD=9C=E4=B8=BA=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E6=A0=87=E5=AE=9A=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HealthMonitor.Service/Resolver/BloodpressResolver.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/HealthMonitor.Service/Resolver/BloodpressResolver.cs b/HealthMonitor.Service/Resolver/BloodpressResolver.cs index fd70290..e71376c 100644 --- a/HealthMonitor.Service/Resolver/BloodpressResolver.cs +++ b/HealthMonitor.Service/Resolver/BloodpressResolver.cs @@ -234,9 +234,18 @@ namespace HealthMonitor.Service.Resolver var lastPushSystolicRefValue = lastPush!.SystolicRefValue; var lastPushDiastolicRefValue = lastPush!.SystolicRefValue; + + + //使用最后一次设备下发校准值作为新的标定值 + systolicRefValue = lastPushSystolicRefValue; + diastolicRefValue = lastPushDiastolicRefValue; + // 测量值当作平均值 systolicAvg = bp.SystolicValue; diastolicAvg = bp.DiastolicValue; + + + systolicInc = (int)((systolicRefValue - systolicAvg) * systolicAvgOffset)!; diastolicInc = (int)((diastolicRefValue - diastolicAvg) * diastolicAvgOffset)!; #region 更新 gps_persoon remarks 下发增量值到iot