Esempio n. 1
0
        private void ReferenceDrive(Duration waitTimeBetweenSteps, bool direction)
        {
            StepperDriveControl.DriveToReferenceSwitch(waitTimeBetweenSteps, direction, _stopDrivingTokenSource.Token);

            if (!_stopDrivingTokenSource.IsCancellationRequested)
            {
                StepperDriveControl.SetPosition(DriveSetting.ReferencePosition);
                _currentStatus.OnNext(Status.Ready);
            }
        }
Esempio n. 2
0
 public void SetPosition(Length position) => StepperDriveControl.SetPosition(position);