private void ReferenceDrive(Duration waitTimeBetweenSteps, bool direction) { StepperDriveControl.DriveToReferenceSwitch(waitTimeBetweenSteps, direction, _stopDrivingTokenSource.Token); if (!_stopDrivingTokenSource.IsCancellationRequested) { StepperDriveControl.SetPosition(DriveSetting.ReferencePosition); _currentStatus.OnNext(Status.Ready); } }
public void SetPosition(Length position) => StepperDriveControl.SetPosition(position);