protected virtual void OnReachedPosition() { ReachedPosition?.Invoke(this, EventArgs.Empty); }
private void onTargetReached() { state = CounterState.Ready; ReachedPosition?.Invoke(this, new PositionChangedEventArgs(motorLocator.Position, motorLocator.LastMoveDirection)); }