Ver código fonte

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

datasub12_previous
H Vs 11 meses atrás
pai
commit
86e93b3d45
1 arquivos alterados com 9 adições e 0 exclusões
  1. +9
    -0
      HealthMonitor.Service/Resolver/BloodpressResolver.cs

+ 9
- 0
HealthMonitor.Service/Resolver/BloodpressResolver.cs Ver arquivo

@@ -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


Carregando…
Cancelar
Salvar