DetectorStaticSurveying update conditions

This commit is contained in:
ngfrolov 2022-08-09 15:55:00 +05:00
parent f4b3dfd9fe
commit 6e95e68551
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,6 @@
using AsbCloudDb.Model;
using System.Linq;
using System;
namespace AsbCloudInfrastructure.Services.DetectOperations.Detectors
{
@ -20,7 +22,7 @@ namespace AsbCloudInfrastructure.Services.DetectOperations.Detectors
return false;
var delta = point0.WellDepth - point0.BitDepth;
if (delta > 2.5d || delta < 0.8d)
if (delta > 2.5d || delta < 0.5d)
return false;
if (point0.RotorSpeed > 30)
@ -40,17 +42,17 @@ namespace AsbCloudInfrastructure.Services.DetectOperations.Detectors
var point0 = telemetry[position];
var delta = point0.WellDepth - point0.BitDepth;
if (delta > 2.5d || delta < 0.8d)
if (delta > 2.5d )
return true;
if (point0.RotorSpeed > 30)
return true;
if (RisesFromBegin(telemetry, t => t.Pressure, position, 10, 5))
if (RisesFromBegin(telemetry, t => t.Pressure, position, 10, 15))
return true;
if (ContainsDeviation(telemetry, t => t.BlockPosition, position, 10, 0.05))
return false;
return true;
return false;
}

View File

@ -6,7 +6,7 @@
Признак начала операции =
( давление > 15 атм ) И
( расстояние от долота до забоя > 0.8м ) И
( расстояние от долота до забоя > 0.5м ) И
( расстояние от долота до забоя < 2.5м ) И
( обороты ротора < 30 об/м ) И
( движение тал.блока в течении 60 сек изменяется менее чем на 3 см ) И
@ -15,7 +15,7 @@
Признак окончания операции =
( расстояние от долота до забоя > 2.5м ) ИЛИ
( обороты ротора > 30 об/м ) ИЛИ
( давление за следующие 10 сек вырастет на 5 атм ) ИЛИ
( давление за следующие 10 сек вырастет на 15 атм ) ИЛИ
( движение тал.блока в течении 10 сек изменяется более чем на 3 см )
## Ключевой параметр