forked from ddrilling/AsbCloudServer
DetectorSlipsTime.DetectBegin reorder conditions
This commit is contained in:
parent
93f22c5b5b
commit
9ba05d6650
@ -13,26 +13,23 @@ public class DetectorSlipsTime : DetectorAbstract
|
||||
protected override bool DetectBegin(DetectableTelemetry[] telemetry, int position, DetectedOperationDto? previousOperation)
|
||||
{
|
||||
var currentPoint = telemetry[position];
|
||||
var delta = Math.Abs(currentPoint.WellDepth - currentPoint.BitDepth);
|
||||
|
||||
if (currentPoint.BitDepth < 150)
|
||||
return false;
|
||||
|
||||
if (delta < 0.1d)
|
||||
return false;
|
||||
|
||||
if (currentPoint.Pressure > 20)
|
||||
return false;
|
||||
|
||||
var nextIndexPoint = telemetry.Length <= position ? position : position + 1;
|
||||
var delta = currentPoint.WellDepth - currentPoint.BitDepth;
|
||||
if (delta < 0.1d)
|
||||
return false;
|
||||
|
||||
var nextIndexPoint = telemetry.Length <= position ? position : position + 1;
|
||||
var nextPoint = telemetry[nextIndexPoint];
|
||||
var deltaBitDepth = Math.Abs(currentPoint.BitDepth - nextPoint.BitDepth);
|
||||
var deltaBlockPosition = Math.Abs(currentPoint.BlockPosition - nextPoint.BlockPosition);
|
||||
|
||||
if (deltaBitDepth > 0.001d)
|
||||
return false;
|
||||
|
||||
var deltaBlockPosition = Math.Abs(currentPoint.BlockPosition - nextPoint.BlockPosition);
|
||||
if (deltaBlockPosition < 0.001d)
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user