forked from ddrilling/AsbCloudServer
Фикс определения осцилляции
This commit is contained in:
parent
6ee386ca6c
commit
9380f52a60
@ -161,14 +161,14 @@ namespace AsbCloudInfrastructure.Services.DetectOperations.Detectors
|
||||
{
|
||||
var enabledSubsystems = 0;
|
||||
|
||||
if (extraData.TryGetValue(DetectorDrilling.ExtraDataKeyHasOscillation, out var hasOscillation)
|
||||
&& hasOscillation is true)
|
||||
enabledSubsystems |= (int)EnabledSubsystemsFlags.AutoOscillation;
|
||||
|
||||
for (var i = begin; i < end; i += 2)
|
||||
{
|
||||
var mode = telemetry[i].Mode;
|
||||
|
||||
if (extraData.TryGetValue(DetectorDrilling.ExtraDataKeyHasOscillation, out var hasOscillation)
|
||||
&& hasOscillation is true)
|
||||
enabledSubsystems |= (int)EnabledSubsystemsFlags.AutoOscillation;
|
||||
|
||||
if(mode == 1)
|
||||
enabledSubsystems |= (int)EnabledSubsystemsFlags.AutoRotor;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user