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