forked from ddrilling/AsbCloudServer
расчет шага детектора.
This commit is contained in:
parent
d45145b8a5
commit
ec121dcecb
@ -173,7 +173,14 @@ namespace AsbCloudInfrastructure.Services.DetectOperations
|
||||
|
||||
if (!isDetected)
|
||||
{
|
||||
startDate = startDate.AddSeconds(0.95 * take);
|
||||
var i = skip - minFragmentLength;
|
||||
i = i > data.Length
|
||||
? data.Length - minStepLength
|
||||
: i;
|
||||
i = i < minFragmentLength
|
||||
? minFragmentLength
|
||||
: i;
|
||||
startDate = data[i].DateTime;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user