From b826962ed195d0b1db7e00898cc1448bfc888cbd Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Fri, 5 Aug 2022 15:58:40 +0500 Subject: [PATCH] Edit operation detectors. --- .../Detectors/DetectorStaticSurveying.cs | 15 ++++++--------- .../OperationDetectionBackgroundService.cs | 2 +- .../Статический замер телесистемы.md | 9 +++++---- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/AsbCloudInfrastructure/Services/DetectOperations/Detectors/DetectorStaticSurveying.cs b/AsbCloudInfrastructure/Services/DetectOperations/Detectors/DetectorStaticSurveying.cs index 73f30e06..35b3a903 100644 --- a/AsbCloudInfrastructure/Services/DetectOperations/Detectors/DetectorStaticSurveying.cs +++ b/AsbCloudInfrastructure/Services/DetectOperations/Detectors/DetectorStaticSurveying.cs @@ -20,10 +20,10 @@ namespace AsbCloudInfrastructure.Services.DetectOperations.Detectors return false; var delta = point0.WellDepth - point0.BitDepth; - if (delta > 2.5d) + if (delta > 2.5d || delta < 0.8d) return false; - if (point0.RotorSpeed > 15) + if (point0.RotorSpeed > 30) return false; if (ContainsDeviation(telemetry, t => t.BlockPosition, position, 60, 0.03)) @@ -40,21 +40,18 @@ namespace AsbCloudInfrastructure.Services.DetectOperations.Detectors var point0 = telemetry[position]; var delta = point0.WellDepth - point0.BitDepth; - if (delta > 2.5d) + if (delta > 2.5d || delta < 0.8d) return true; - if (point0.RotorSpeed > 15) + if (point0.RotorSpeed > 30) return true; - if (RisesFromBegin(telemetry, t => t.Pressure, position, 10, 10)) + if (RisesFromBegin(telemetry, t => t.Pressure, position, 10, 5)) return true; - if (ContainsDeviation(telemetry, t => t.BlockPosition, position, 10, 0.03)) + if (ContainsDeviation(telemetry, t => t.BlockPosition, position, 10, 0.05)) return false; - //if (DeviatesFromBegin(telemetry, t => t.Pressure, position, 60, 10)) - // return false; - return false; } diff --git a/AsbCloudInfrastructure/Services/DetectOperations/OperationDetectionBackgroundService.cs b/AsbCloudInfrastructure/Services/DetectOperations/OperationDetectionBackgroundService.cs index 4ebe2000..4f815cc8 100644 --- a/AsbCloudInfrastructure/Services/DetectOperations/OperationDetectionBackgroundService.cs +++ b/AsbCloudInfrastructure/Services/DetectOperations/OperationDetectionBackgroundService.cs @@ -25,7 +25,7 @@ namespace AsbCloudInfrastructure.Services.DetectOperations new DetectorDevelopment(), new DetectorTemplating(), new DetectorSlipsTime(), - //new DetectorStaticSurveying(), + new DetectorStaticSurveying(), new DetectorFlashing(), }; diff --git a/AsbCloudInfrastructure/Services/DetectOperations/Specifications/Статический замер телесистемы.md b/AsbCloudInfrastructure/Services/DetectOperations/Specifications/Статический замер телесистемы.md index b837f59b..3f7a9488 100644 --- a/AsbCloudInfrastructure/Services/DetectOperations/Specifications/Статический замер телесистемы.md +++ b/AsbCloudInfrastructure/Services/DetectOperations/Specifications/Статический замер телесистемы.md @@ -6,16 +6,17 @@ Признак начала операции = ( давление > 15 атм ) И + ( расстояние от долота до забоя > 0.8м ) И ( расстояние от долота до забоя < 2.5м ) И - ( обороты ротора < 15 об/м ) И + ( обороты ротора < 30 об/м ) И ( движение тал.блока в течении 60 сек изменяется менее чем на 3 см ) И ( давление за следующие 60 сек изменяется менее чем на 10 атм ) Признак окончания операции = ( расстояние от долота до забоя > 2.5м ) ИЛИ - ( обороты ротора > 15 об/м ) ИЛИ - ( давление за следующие 10 сек вырастет на 10 атм ) ИЛИ - ( движение тал.блока в течении 60 сек изменяется более чем на 3 см ) + ( обороты ротора > 30 об/м ) ИЛИ + ( давление за следующие 10 сек вырастет на 5 атм ) ИЛИ + ( движение тал.блока в течении 10 сек изменяется более чем на 3 см ) ## Ключевой параметр Продолжительность операции.