Explorar el Código

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

datasub12_previous
H Vs hace 11 meses
padre
commit
86e93b3d45
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. +9
    -0
      HealthMonitor.Service/Resolver/BloodpressResolver.cs

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

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


Cargando…
Cancelar
Guardar