浏览代码

调整使用最后一次设备下发校准值作为新的标定值

datasub12_previous
H Vs 11 个月前
父节点
当前提交
86e93b3d45
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. +9
    -0
      HealthMonitor.Service/Resolver/BloodpressResolver.cs

+ 9
- 0
HealthMonitor.Service/Resolver/BloodpressResolver.cs 查看文件

@@ -234,9 +234,18 @@ namespace HealthMonitor.Service.Resolver


var lastPushSystolicRefValue = lastPush!.SystolicRefValue; var lastPushSystolicRefValue = lastPush!.SystolicRefValue;
var lastPushDiastolicRefValue = lastPush!.SystolicRefValue; var lastPushDiastolicRefValue = lastPush!.SystolicRefValue;


//使用最后一次设备下发校准值作为新的标定值
systolicRefValue = lastPushSystolicRefValue;
diastolicRefValue = lastPushDiastolicRefValue;

// 测量值当作平均值 // 测量值当作平均值
systolicAvg = bp.SystolicValue; systolicAvg = bp.SystolicValue;
diastolicAvg = bp.DiastolicValue; diastolicAvg = bp.DiastolicValue;



systolicInc = (int)((systolicRefValue - systolicAvg) * systolicAvgOffset)!; systolicInc = (int)((systolicRefValue - systolicAvg) * systolicAvgOffset)!;
diastolicInc = (int)((diastolicRefValue - diastolicAvg) * diastolicAvgOffset)!; diastolicInc = (int)((diastolicRefValue - diastolicAvg) * diastolicAvgOffset)!;
#region 更新 gps_persoon remarks 下发增量值到iot #region 更新 gps_persoon remarks 下发增量值到iot


正在加载...
取消
保存